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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin864
RA = 354.164, Dec = -41.2579
tmin = 463276801, tmax = 463536001
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='54683', job_status='RUN', time_executed='2021-09-30 01:45:50.172531', time_epoch_executed='1632991550.17' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='864'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54683

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54683/ft1_4FGL_J2336.6-4115_daily_bin864.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54683/ft2_4FGL_J2336.6-4115_daily_bin864.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54683/ft1_4FGL_J2336.6-4115_daily_bin864.fits outfile=/scratch/kocevski/54683/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin864.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=463276801.0 tmax=463536001.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.65
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54683/ft1_filtered_4FGL_J2336.6-4115_daily_bin864.fits" evtable="EVENTS" scfile=/scratch/kocevski/54683/ft2_4FGL_J2336.6-4115_daily_bin864.fits sctable="SC_DATA" outfile=/scratch/kocevski/54683/ltcube_463276801_463536001_4FGL_J2336.6-4115_daily_bin864.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/54683/ft2_4FGL_J2336.6-4115_daily_bin864.fits
.....................!
real 12.02
user 11.62
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54683/ft1_filtered_4FGL_J2336.6-4115_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/54683/ft2_4FGL_J2336.6-4115_daily_bin864.fits sctable="SC_DATA" expcube=/scratch/kocevski/54683/ltcube_463276801_463536001_4FGL_J2336.6-4115_daily_bin864.fits outfile=/scratch/kocevski/54683/expmap_463276801_463536001_4FGL_J2336.6-4115_daily_bin864.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/54683/ltcube_463276801_463536001_4FGL_J2336.6-4115_daily_bin864.fits
.....................!
real 191.08
user 185.56
sys 5.18

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/54683/ft1_filtered_4FGL_J2336.6-4115_daily_bin864.fits scfile=/scratch/kocevski/54683/ft2_4FGL_J2336.6-4115_daily_bin864.fits outfile=/scratch/kocevski/54683/cmap_463276801_463536001_4FGL_J2336.6-4115_daily_bin864.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.164 yref=-41.2579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54683/ft1_filtered_4FGL_J2336.6-4115_daily_bin864.fits scfile=/scratch/kocevski/54683/ft2_4FGL_J2336.6-4115_daily_bin864.fits outfile=/scratch/kocevski/54683/cmap_HighResolution_463276801_463536001_4FGL_J2336.6-4115_daily_bin864.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.164 yref=-41.2579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2398       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    105.19       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3620       1.0000         .10000E-03   10000.    
    15 'norm      '    9.3721       1.0000         .10000E-03   10000.    
    16 'norm      '    25.343       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.077       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84114E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .97385E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6181       1.0000         .10000E-03   10000.    
    25 'norm      '    8.0235       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .68689E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.9059       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.010       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .40099E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .68139       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1317       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=   3731.265     FROM MIGRAD    STATUS=CONVERGED   1747 CALLS     5737 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.947        .18142E-02** at limit **
   2  Prefactor     .10000E-03    16.750        .18142E-02** at limit **
   3  Prefactor     .10000E-03    17.543        .18142E-02** at limit **
   4  Prefactor     .10000E-03    13.695        .18142E-02** at limit **
   5  Prefactor     24.380        37.030        .81049E-04   -.38714E-04
   6  Prefactor     .10000E-03    2.6436        .96984E-03** at limit **
   7  Prefactor     21.305        14.340        .86781E-04    .37729E-04
   8  Prefactor     9.2437        97.740        .13185E-03   -.86226E-07
   9  Prefactor     11.547        60.379        .11785E-03   -.43412E-06
  10  Prefactor     .10000E-03    33.539        .18142E-02** at limit **
  11  Prefactor     2.3514        7.5002        .26699E-03    .47264E-04
  12  Prefactor     .10000E-03    30.704        .18142E-02** at limit **
  13  Prefactor     105.18        89.049        .39208E-04    .46973E-05
  14  Prefactor     9.3626        18.490        .13098E-03   -.12542E-04
  15  norm          9.3615        17.780        .13091E-03   -.48633E-05
  16  norm          25.341        13.923        .79574E-04   -.90722E-05
  17  norm          .10000E-03    2.2029        .88527E-03** at limit **
  18  norm          .10000E-03    4.3156        .12384E-02** at limit **
  19  Prefactor     7.6379        7.2005        .14513E-03   -.33411E-04
  20  Prefactor     26.242        61.765        .78448E-04    .55983E-04
  21  Prefactor     .10019E-03    79.482        .14343    ** at limit **
  22  norm          .10083E-03    102.25        .23652E-02** at limit **
  23  Prefactor     .10000E-03    8.3825        .17251E-02** at limit **
  24  norm          1.6187        1.1991        .54684E-04   -.19012E-03
  25  norm          8.0316        7.1370        .67024E-03    .37519E-03
  26  Prefactor     .10000E-03    2.2238        .88556E-03** at limit **
  27  Prefactor     .10000E-03    154.40        .37460E-03** at limit **
  28  Prefactor     .10000E-03    20.107        .18142E-02** at limit **
  29  norm          2.9043        92.612        .23836E-03   -.54374E-05
  30  Prefactor     10.007        8.6914        .12665E-03    .25268E-04
  31  Prefactor     .10000E-03    14.460        .22359E-02** at limit **
  32  Prefactor     .10000E-03    20.490        .18142E-02** at limit **
  33  Normalizat    .68128        .28883        .27449E-03    .40196E-04
  34  Prefactor     1.1321        .30979        .24437E-03    .40707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3805
  Prefactor  = 0.0001
  Prefactor  = 21.3047
  Prefactor  = 9.24373
  Prefactor  = 11.547
  Prefactor  = 0.0001
  Prefactor  = 2.35144
  Prefactor  = 0.0001
  Prefactor  = 105.176
  Prefactor  = 9.36263
  norm       = 9.36152
  norm       = 25.3406
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.63786
  Prefactor  = 26.2423
  Prefactor  = 0.000100185
  norm       = 0.000100828
  Prefactor  = 0.0001
  norm       = 1.61872
  norm       = 8.03162
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.90434
  Prefactor  = 10.007
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.681281
  Prefactor  = 1.1321
 **********
 **   18 **HESSE 
 **********

 FCN=   3731.265     FROM HESSE     STATUS=OK           708 CALLS     6445 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.380        37.029        .32420E-05   -1.4720    
   6  Prefactor     .10000E-03    2.6436        .19397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.305        14.331        .34712E-05   -1.4784    
   8  Prefactor     9.2437        97.557        .52739E-05   -1.5100    
   9  Prefactor     11.547        60.388        .47138E-05   -1.5028    
  10  Prefactor     .10000E-03    33.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3514        7.4993        .10680E-04   -1.5401    
  12  Prefactor     .10000E-03    30.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     105.18        89.047        .78416E-05   -1.3653    
  14  Prefactor     9.3626        18.489        .52392E-05   -1.5096    
  15  norm          9.3615        17.780        .52363E-05   -1.5096    
  16  norm          25.341        13.923        .31829E-05   -1.4701    
  17  norm          .10000E-03    2.2029        .17705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.3157        .24768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.6379        7.2004        .58050E-05   -1.5155    
  20  Prefactor     26.242        61.369        .15690E-04   -1.4683    
  21  Prefactor     .10019E-03    82.343        .14029       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10083E-03    103.60        .94606E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3831        .34502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6187        1.1991        .21874E-05   -1.5454    
  25  norm          8.0316        7.1280        .26810E-04   -1.5141    
  26  Prefactor     .10000E-03    2.2239        .17711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    154.40        .74920E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.9043        92.591        .95342E-05   -1.5367    
  30  Prefactor     10.007        8.6911        .50661E-05   -1.5075    
  31  Prefactor     .10000E-03    14.535        .44717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    20.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .68128        .28913        .10980E-04   -1.0464    
  34  Prefactor     1.1321        .31022        .97747E-05   -.88447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12282e-09
Minuit parameter uncertainties:
  1  1.40403e-05
  2  2.45596e-05
  3  4.06086e-06
  4  2.41743e-06
  5  37.0638
  6  8.56151e-07
  7  14.3334
  8  60.1854
  9  52.8965
  10  7.57223e-05
  11  7.50233
  12  1.71065e-05
  13  89.1604
  14  18.5002
  15  17.7898
  16  13.9245
  17  2.57131e-06
  18  1.56133e-07
  19  7.20117
  20  61.5175
  21  0.00781781
  22  0.0185594
  23  2.00192e-05
  24  1.1991
  25  7.12879
  26  1.23349e-05
  27  0.000890091
  28  1.94042e-05
  29  32.8524
  30  8.69222
  31  0.000204104
  32  1.04105e-05
  33  0.289782
  34  0.31072
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
581   Normalization:  6.813e-01  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/54683/likelihoodResults_463276801_463536001_4FGL_J2336.6-4115_daily_bin864.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) = 3730.79448443
delta logL = 0.470180329077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3730.78364763
delta logL = 0.481017130207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9125       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3027       1.0000          .0000       5.0000    
     3 'Normalizat'    .57602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2166       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=   3730.784     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      249 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8975        47.820        .50992E-02    .24696E-03
   2  alpha         3.3055        4.1523        .24975        .49147E-04
   3  Normalizat    .57597        .86762E-01    .67019E-01   -.42175E-04
   4  Prefactor     1.2166        .85386E-01    .53574E-01   -.24016E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89746
  alpha      = 3.30552
  Normalizat = 0.575966
  Prefactor  = 1.21658
 **********
 **   18 **HESSE 
 **********

 FCN=   3730.784     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8975        34.516        .72216E-04   -1.5313    
   2  alpha         3.3055        4.1525        .10003E-01    .32806    
   3  Normalizat    .57597        .43629        .29660E-03   -1.0901    
   4  Prefactor     1.2166        .46176        .23687E-03   -.85823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14394e-10
Minuit parameter uncertainties:
  1  23.2144
  2  4.44131
  3  0.43893
  4  0.46331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54683': 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) = 3730.78364525
delta logL = 0.481019516847

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.217e+00  4.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:  5.760e-01  4.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 3.31 +/- 4.44
Photon Flux (Free Index): 1.21e-07 +/- 1.61e-07
Energy Flux (Free Index): 2.29e-05 +/- 1.78e-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/54683/cmap_HighResolution_463276801_463536001_4FGL_J2336.6-4115_daily_bin864.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-05', comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='2.29e-05', photon_flux_error='4.67e-08', dlogl='4.81e-01', energy_flux='2.13e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-30 01:58:13.944047', photon_index_error2='4.44', photon_index2='3.31', ts='2.30', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.78e-05', EG='0.68', time_epoch_completed='1632992293.94', return_code='0', job_id='54683', GAL2='1.22', EG2='0.58', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='1.61e-07', ts2='3.38', photon_index='2.22' WHERE bin_id='864' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 01:58:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 54683: <4FGL_J2336.6-4115_daily_bin864> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin864> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 01:45:30 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:45:32 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:45:32 2021
Terminated at Thu Sep 30 01:58:14 2021
Results reported at Thu Sep 30 01:58:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin864 354.164 -41.2579 463276801 463536001 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

