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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1650
RA = 354.164, Dec = -41.2579
tmin = 667008001, tmax = 667267201
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='324004', job_status='RUN', time_executed='2022-02-23 00:57:18.954397', time_epoch_executed='1645606638.95' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324004/ft1_4FGL_J2336.6-4115_daily_bin1650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324004/ft2_4FGL_J2336.6-4115_daily_bin1650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324004/ft1_4FGL_J2336.6-4115_daily_bin1650.fits outfile=/scratch/kocevski/324004/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1650.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=667008001.0 tmax=667267201.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.05
user 2.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324004/ft2_4FGL_J2336.6-4115_daily_bin1650.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/324004/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1650.fits evtable="EVENTS" outfile="/scratch/kocevski/324004/ft1_filtered_4FGL_J2336.6-4115_daily_bin1650.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324004/ft1_filtered_4FGL_J2336.6-4115_daily_bin1650.fits" evtable="EVENTS" scfile=/scratch/kocevski/324004/ft2_4FGL_J2336.6-4115_daily_bin1650.fits sctable="SC_DATA" outfile=/scratch/kocevski/324004/ltcube_667008001_667267201_4FGL_J2336.6-4115_daily_bin1650.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/324004/ft2_4FGL_J2336.6-4115_daily_bin1650.fits
.....................!
real 16.19
user 15.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324004/ft1_filtered_4FGL_J2336.6-4115_daily_bin1650.fits evtable="EVENTS" scfile=/scratch/kocevski/324004/ft2_4FGL_J2336.6-4115_daily_bin1650.fits sctable="SC_DATA" expcube=/scratch/kocevski/324004/ltcube_667008001_667267201_4FGL_J2336.6-4115_daily_bin1650.fits outfile=/scratch/kocevski/324004/expmap_667008001_667267201_4FGL_J2336.6-4115_daily_bin1650.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/324004/ltcube_667008001_667267201_4FGL_J2336.6-4115_daily_bin1650.fits
.....................!
real 191.78
user 186.36
sys 4.90

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/324004/ft1_filtered_4FGL_J2336.6-4115_daily_bin1650.fits scfile=/scratch/kocevski/324004/ft2_4FGL_J2336.6-4115_daily_bin1650.fits outfile=/scratch/kocevski/324004/cmap_667008001_667267201_4FGL_J2336.6-4115_daily_bin1650.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324004/ft1_filtered_4FGL_J2336.6-4115_daily_bin1650.fits scfile=/scratch/kocevski/324004/ft2_4FGL_J2336.6-4115_daily_bin1650.fits outfile=/scratch/kocevski/324004/cmap_HighResolution_667008001_667267201_4FGL_J2336.6-4115_daily_bin1650.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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324004/ft1_filtered_4FGL_J2336.6-4115_daily_bin1650.fits evtable="EVENTS" scfile=/scratch/kocevski/324004/ft2_4FGL_J2336.6-4115_daily_bin1650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324004/Model_4FGL_J2336.6-4115_daily_bin1650.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/324004/ft1_filtered_4FGL_J2336.6-4115_daily_bin1650.fits.....................!
real 24.29
user 22.97
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.472       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.145       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.958       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.646       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12162E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    226.30       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24422E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    121.19       1.0000         .10000E-03   10000.    
    13 'Prefactor '    456.04       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0516       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6687       1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.441       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12918E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10357E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.617       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7311       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11107E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.6389       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11883E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.7454       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.8238       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .26702       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=   2039.162     FROM MIGRAD    STATUS=CONVERGED    937 CALLS     6477 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.459        63.521        .23920E-06   -.21342E-04
   2  Prefactor     10.141        31.729       -.69881E-07   -.24615E-04
   3  Prefactor     14.003        75.282       -.12805E-05   -.14282E-04
   4  Prefactor     .10000E-03    20.718        .49885E-07** at limit **
   5  Prefactor     20.634        37.581        .39222E-06   -.57329E-05
   6  Prefactor     .10000E-03    4.6027        .13038E-07** at limit **
   7  Prefactor     .10000E-03    7.1266        .18108E-06** at limit **
   8  Prefactor     .10000E-03    199.26       -.46334E-05** at limit **
   9  Prefactor     233.22        6679.0       -.19628E-03   -.45844E-05
  10  Prefactor     .10001E-03    542.32        .12814E-04** at limit **
  11  Prefactor     11.020        136.78        .20950E-04   -.51204E-04
  12  Prefactor     121.17        145.77        .59404E-06   -.15859E-04
  13  Prefactor     456.20        328.37       -.25839E-05    .85659E-05
  14  Prefactor     1.0482        68.439        .17757E-04   -.10099E-04
  15  norm          .10000E-03    12.050       -.39536E-08** at limit **
  16  norm          .10000E-03    5.1370        .21246E-06** at limit **
  17  norm          .10000E-03    5.8794        .71666E-07** at limit **
  18  norm          .10000E-03    8.2608       -.11931E-07** at limit **
  19  Prefactor     9.6689        15.610        .13985E-06   -.49820E-04
  20  Prefactor     57.520        75.530       -.14332E-05   -.32459E-04
  21  Prefactor     .10000E-03    83.297        .11923E-05** at limit **
  22  norm          .10000E-03    29.802        .27810E-05** at limit **
  23  Prefactor     40.610        38.381       -.15494E-06   -.66268E-04
  24  norm          1.7312        1.5884        .49826E-07   -.12801E-03
  25  norm          .10000E-03    4.3056        .16982E-06** at limit **
  26  Prefactor     .10000E-03    10.058        .14547E-06** at limit **
  27  Prefactor     7.6438        50.826       -.33814E-07   -.27719E-04
  28  Prefactor     .10000E-03    75.521        .91637E-06** at limit **
  29  norm          .10000E-03    25.069       -.43622E-06** at limit **
  30  Prefactor     .10000E-03    27.249       -.36642E-06** at limit **
  31  Prefactor     1.7448        5.7915       -.11904E-06   -.46756E-04
  32  Prefactor     .10000E-03    58.974       -.15056E-05** at limit **
  33  Normalizat    1.8236        .40466       -.34028E-05   -.54601E-04
  34  Prefactor     .26739        .42386        .10460E-04    .25164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.4593
  Prefactor  = 10.1405
  Prefactor  = 14.0031
  Prefactor  = 0.0001
  Prefactor  = 20.6337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 233.219
  Prefactor  = 0.000100011
  Prefactor  = 11.0197
  Prefactor  = 121.166
  Prefactor  = 456.203
  Prefactor  = 1.04823
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.66889
  Prefactor  = 57.5198
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.6097
  norm       = 1.7312
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.64383
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74479
  Prefactor  = 0.0001
  Normalizat = 1.82359
  Prefactor  = 0.267394
 **********
 **   18 **HESSE 
 **********

 FCN=   2039.162     FROM HESSE     STATUS=OK           720 CALLS     7197 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.459        63.628        .52466E-04   -1.4177    
   2  Prefactor     10.141        31.433        .12580E-03   -1.5071    
   3  Prefactor     14.003        75.792        .10721E-03   -1.4959    
   4  Prefactor     .10000E-03    20.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.634        37.357        .88149E-04   -1.4799    
   6  Prefactor     .10000E-03    4.6101        .94617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2021        .11720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    205.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     233.22        6611.1        .13448E-03   -1.2642    
  10  Prefactor     .10001E-03    540.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.020        132.39        .11935E-03   -1.5044    
  12  Prefactor     121.17        145.78        .18279E-03   -1.3502    
  13  Prefactor     456.20        328.46        .95866E-04   -1.1403    
  14  Prefactor     1.0482        68.554        .24109E-02   -1.5503    
  15  norm          .10000E-03    12.051        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1371        .99962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.8800        .10694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.2634        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6689        15.619        .64438E-03   -1.5086    
  20  Prefactor     57.520        75.035        .26466E-03   -1.4190    
  21  Prefactor     .10000E-03    83.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    30.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.610        38.433        .62896E-04   -1.4433    
  24  norm          1.7312        1.5882        .51878E-04   -1.5445    
  25  norm          .10000E-03    4.3168        .91472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.420        .27823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.6438        50.132        .14509E-03   -1.5155    
  28  Prefactor     .10000E-03    75.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    25.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    28.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.7448        5.7013        .18090E-03   -1.5444    
  32  Prefactor     .10000E-03    58.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.8236        .40008        .20595E-03   -.69050    
  34  Prefactor     .26739        .40199        .51922E-03   -1.2423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21964e-09
Minuit parameter uncertainties:
  1  63.7018
  2  31.4843
  3  65.284
  4  1.55901e-05
  5  37.3998
  6  7.85538e-07
  7  4.75662e-06
  8  0.00127375
  9  2359.48
  10  0.00488236
  11  76.6028
  12  146.214
  13  329.837
  14  16.9735
  15  1.96498e-06
  16  4.65796e-06
  17  2.49063e-06
  18  1.32478e-08
  19  15.6257
  20  75.1588
  21  0.00027459
  22  0.000186086
  23  38.4563
  24  1.58822
  25  6.62989e-06
  26  1.45773e-05
  27  39.1986
  28  0.000182946
  29  4.15711e-05
  30  4.87328e-05
  31  5.70304
  32  0.000210987
  33  0.400799
  34  0.406271
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  2.674e-01  4.063e-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.824e+00  4.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/324004/likelihoodResults_667008001_667267201_4FGL_J2336.6-4115_daily_bin1650.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) = 2039.1627766
delta logL = -0.000997273265284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2039.16177928
delta logL = 4.52066615253e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2259       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26739       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=   2039.162     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5946        .90712E-02** at limit **
   2  alpha         2.2367        3.5018        .41468       -.12487E-04
   3  Normalizat    1.8236        .38307        .46597E-01    .42245E-05
   4  Prefactor     .26739        .39860        .11723        .25718E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.23669
  Normalizat = 1.82359
  Prefactor  = 0.26739
 **********
 **   18 **HESSE 
 **********

 FCN=   2039.162     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3522        .91852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2367        3.4858        .50000       -.10552    
   3  Normalizat    1.8236        .36408        .20595E-03   -.69049    
   4  Prefactor     .26739        .37848        .51907E-03   -1.2423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57052e-10
Minuit parameter uncertainties:
  1  4.17105e-06
  2  2.48757
  3  0.364625
  4  0.382041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324004': 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) = 2039.16177923
delta logL = 1.00768829725e-07

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  4.171e-06  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.237e+00  2.488e+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:  2.674e-01  3.820e-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.824e+00  3.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.164 -41.258

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-05', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-02-23 01:07:14.350998', job_id='324004', GAL2='0.27', fit_tolerance='1e-08', EG2='1.82', EG='1.82', time_epoch_completed='1645607234.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.27', dlogl='1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1650' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 23 01:07:14 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 324004: <4FGL_J2336.6-4115_daily_bin1650> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1650> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Feb 23 00:55:18 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 23 00:56:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 23 00:56:41 2022
Terminated at Wed Feb 23 01:07:15 2022
Results reported at Wed Feb 23 01:07:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1650 354.164 -41.2579 667008001 667267201 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            717 sec.

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

