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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1647
RA = 354.164, Dec = -41.2579
tmin = 666230401, tmax = 666489601
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='833749', job_status='RUN', time_executed='2022-02-14 00:37:47.778167', time_epoch_executed='1644827867.78' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833749/ft1_4FGL_J2336.6-4115_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833749/ft2_4FGL_J2336.6-4115_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833749/ft1_4FGL_J2336.6-4115_daily_bin1647.fits outfile=/scratch/kocevski/833749/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1647.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=666230401.0 tmax=666489601.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 4.28
user 4.02
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833749/ft2_4FGL_J2336.6-4115_daily_bin1647.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/833749/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1647.fits evtable="EVENTS" outfile="/scratch/kocevski/833749/ft1_filtered_4FGL_J2336.6-4115_daily_bin1647.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833749/ft1_filtered_4FGL_J2336.6-4115_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/833749/ft2_4FGL_J2336.6-4115_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/833749/ltcube_666230401_666489601_4FGL_J2336.6-4115_daily_bin1647.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/833749/ft2_4FGL_J2336.6-4115_daily_bin1647.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833749/ft1_filtered_4FGL_J2336.6-4115_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833749/ft2_4FGL_J2336.6-4115_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/833749/ltcube_666230401_666489601_4FGL_J2336.6-4115_daily_bin1647.fits outfile=/scratch/kocevski/833749/expmap_666230401_666489601_4FGL_J2336.6-4115_daily_bin1647.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/833749/ltcube_666230401_666489601_4FGL_J2336.6-4115_daily_bin1647.fits
.....................!
real 189.79
user 185.09
sys 4.31

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/833749/ft1_filtered_4FGL_J2336.6-4115_daily_bin1647.fits scfile=/scratch/kocevski/833749/ft2_4FGL_J2336.6-4115_daily_bin1647.fits outfile=/scratch/kocevski/833749/cmap_666230401_666489601_4FGL_J2336.6-4115_daily_bin1647.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833749/ft1_filtered_4FGL_J2336.6-4115_daily_bin1647.fits scfile=/scratch/kocevski/833749/ft2_4FGL_J2336.6-4115_daily_bin1647.fits outfile=/scratch/kocevski/833749/cmap_HighResolution_666230401_666489601_4FGL_J2336.6-4115_daily_bin1647.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.888       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.205       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12710       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.922       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.825       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    32.908       1.0000         .10000E-03   10000.    
    16 'norm      '    .42980E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.852       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5664       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.2995       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.192       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6999       1.0000         .10000E-03   10000.    
    25 'norm      '    5.0459       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    54.692       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.2625       1.0000         .10000E-03   10000.    
    32 'Prefactor '    27.091       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .88653       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .93944       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=   4137.198     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     4826 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7923        102.54       -.26491E-05    .85105E-05
   2  Prefactor     71.896        32.263        .71819E-06    .24708E-03
   3  Prefactor     .10000E-03    12.370        .10106E-05** at limit **
   4  Prefactor     .10000E-03    8.7962        .53707E-06** at limit **
   5  Prefactor     .10000E-03    9.4517       -.85135E-06** at limit **
   6  Prefactor     12.205        8.3059        .99227E-07    .11079E-03
   7  Prefactor     .13882        2.3269        .15390E-05    .27727E-03
   8  Prefactor     12.272        15.994        .12973E-06    .20860E-04
   9  Prefactor     .10000E-03    31.000        .32347E-05** at limit **
  10  Prefactor     17.914        29.012        .14734E-05    .60107E-04
  11  Prefactor     .10002E-03    6.5182       -.27674E-05** at limit **
  12  Prefactor     .10000E-03    42.459       -.47731E-05** at limit **
  13  Prefactor     72.826        58.760       -.23700E-06   -.80273E-05
  14  Prefactor     .10000E-03    12.988        .16933E-06** at limit **
  15  norm          32.909        21.201       -.62490E-07    .90159E-05
  16  norm          .10004E-03    181.85       -.65134E-04** at limit **
  17  norm          .10000E-03    2.0905        .10823E-07** at limit **
  18  norm          12.853        8.8313       -.35570E-07    .11180E-04
  19  Prefactor     9.5674        8.6751       -.14853E-06    .14804E-03
  20  Prefactor     .10000E-03    57.803        .70700E-06** at limit **
  21  Prefactor     .10000E-03    13.964       -.31322E-06** at limit **
  22  norm          4.2968        4.4961       -.24899E-06    .97872E-04
  23  Prefactor     16.189        19.872        .55149E-06    .18352E-03
  24  norm          1.7000        1.3522       -.59914E-07    .60923E-03
  25  norm          5.0453        4.1753        .96330E-07    .10908E-03
  26  Prefactor     .10000E-03    2.5739       -.20073E-06** at limit **
  27  Prefactor     .10000E-03    14.751       -.84284E-06** at limit **
  28  Prefactor     54.695        57.808       -.96683E-06   -.21966E-04
  29  norm          .10000E-03    15.503       -.85055E-06** at limit **
  30  Prefactor     .10000E-03    2.5492        .42319E-06** at limit **
  31  Prefactor     1.2604        3.5031       -.30143E-05    .17344E-03
  32  Prefactor     27.073        38.757        .42183E-05    .15918E-03
  33  Normalizat    .88686        .19716        .17961E-05    .44151E-03
  34  Prefactor     .93902        .22475       -.12697E-05    .35871E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.79232
  Prefactor  = 71.8959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2055
  Prefactor  = 0.138823
  Prefactor  = 12.2717
  Prefactor  = 0.000100001
  Prefactor  = 17.9135
  Prefactor  = 0.000100025
  Prefactor  = 0.000100003
  Prefactor  = 72.8259
  Prefactor  = 0.0001
  norm       = 32.9093
  norm       = 0.000100037
  norm       = 0.0001
  norm       = 12.8528
  Prefactor  = 9.56742
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.29684
  Prefactor  = 16.1891
  norm       = 1.70001
  norm       = 5.04534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.6946
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26038
  Prefactor  = 27.0728
  Normalizat = 0.886861
  Prefactor  = 0.939017
 **********
 **   18 **HESSE 
 **********

 FCN=   4137.198     FROM HESSE     STATUS=OK           738 CALLS     5564 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7923        102.44        .20735E-03   -1.5318    
   2  Prefactor     71.896        32.273        .47349E-04   -1.4010    
   3  Prefactor     .10000E-03    12.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.205        8.3069        .11466E-03   -1.5009    
   7  Prefactor     .13882        12.075        .18421E-02   -1.5633    
   8  Prefactor     12.272        15.988        .11433E-03   -1.5007    
   9  Prefactor     .10000E-03    31.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.914        29.013        .94607E-04   -1.4861    
  11  Prefactor     .10002E-03    17.325        .31445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     72.826        58.770        .47045E-04   -1.3999    
  14  Prefactor     .10000E-03    13.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          32.909        21.209        .69852E-04   -1.4560    
  16  norm          .10004E-03    8.3675        .59253E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0908        .90814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.853        8.8314        .11173E-03   -1.4991    
  19  Prefactor     9.5674        8.6693        .12957E-03   -1.5089    
  20  Prefactor     .10000E-03    58.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2968        4.4877        .13157E-03   -1.5293    
  23  Prefactor     16.189        19.867        .99534E-04   -1.4903    
  24  norm          1.7000        1.3496        .62159E-04   -1.5447    
  25  norm          5.0453        4.1707        .11377E-03   -1.5259    
  26  Prefactor     .10000E-03    2.6175        .10068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     54.695        57.827        .54238E-04   -1.4227    
  29  norm          .10000E-03    15.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.5548        .10011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.2604        3.5244        .19320E-03   -1.5483    
  32  Prefactor     27.073        39.046        .76968E-04   -1.4667    
  33  Normalizat    .88686        .23004        .23304E-03   -.96923    
  34  Prefactor     .93902        .26225        .26316E-03   -.94791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67236e-09
Minuit parameter uncertainties:
  1  39.4955
  2  32.2813
  3  0.000105657
  4  2.24781e-06
  5  4.95057e-05
  6  8.30765
  7  2.58904
  8  15.9935
  9  0.000315276
  10  29.0362
  11  0.00131273
  12  0.00067119
  13  58.8167
  14  3.06912e-05
  15  21.2139
  16  0.00110677
  17  2.5693e-06
  18  8.83228
  19  8.67039
  20  0.000353256
  21  3.54029e-05
  22  4.48803
  23  19.8754
  24  1.34966
  25  4.1709
  26  2.30379e-05
  27  2.49103e-05
  28  57.8865
  29  7.22617e-05
  30  5.28076e-05
  31  3.52498
  32  39.0831
  33  0.230294
  34  0.262602
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
581   Normalization:  8.869e-01  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.08
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.11e-05

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) = 4137.16156527
delta logL = 0.0360475647021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4137.15416635
delta logL = 0.043446483759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5387       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4668       1.0000          .0000       5.0000    
     3 'Normalizat'    .87834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94446       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=   4137.154     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      232 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5385        4.3137        .10354E-03    .78904E-03
   2  alpha         2.4667        .86756        .14273E-01    .47937E-04
   3  Normalizat    .87836        .22508        .23400E-03   -.93575E-04
   4  Prefactor     .94442        .25975        .26245E-03   -.10851E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.53849
  alpha      = 2.46667
  Normalizat = 0.878356
  Prefactor  = 0.944419
 **********
 **   18 **HESSE 
 **********

 FCN=   4137.154     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5385        4.1948        .20709E-04   -1.5282    
   2  alpha         2.4667        .84397        .57092E-03   -.13332E-01
   3  Normalizat    .87836        .22513        .93598E-05   -.97225    
   4  Prefactor     .94442        .25991        .10498E-04   -.94606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60101e-10
Minuit parameter uncertainties:
  1  4.19507
  2  0.860884
  3  0.225374
  4  0.260258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833749': 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) = 4137.15416631
delta logL = 0.0434465283433

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
581   Normalization:  8.784e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.47 +/- 0.86
Photon Flux (Free Index): 4.07e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.00e-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/833749/cmap_HighResolution_666230401_666489601_4FGL_J2336.6-4115_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.26e-05', photon_flux_error='2.73e-08', dlogl='4.34e-02', energy_flux='1.34e-05', photon_flux2='4.07e-08', job_status='DONE', time_completed='2022-02-14 00:49:04.110326', photon_index_error2='0.86', photon_index2='2.47', ts='4.08', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='0.89', time_epoch_completed='1644828544.11', return_code='0', job_id='833749', GAL2='0.94', EG2='0.88', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.12e-08', ts2='4.16', photon_index='2.22' WHERE bin_id='1647' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:49:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 833749: <4FGL_J2336.6-4115_daily_bin1647> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1647> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 14 00:36:01 2022
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:36:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:36:03 2022
Terminated at Mon Feb 14 00:49:04 2022
Results reported at Mon Feb 14 00:49:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1647 354.164 -41.2579 666230401 666489601 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 :                                   678.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

