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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1323
RA = 354.164, Dec = -41.2579
tmin = 582249601, tmax = 582508801
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='57413', job_status='RUN', time_executed='2021-09-30 01:56:13.857049', time_epoch_executed='1632992173.86' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57413

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57413/ft1_4FGL_J2336.6-4115_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57413/ft2_4FGL_J2336.6-4115_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57413/ft1_4FGL_J2336.6-4115_daily_bin1323.fits outfile=/scratch/kocevski/57413/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1323.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=582249601.0 tmax=582508801.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 5.33
user 5.09
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57413/ft1_filtered_4FGL_J2336.6-4115_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/57413/ft2_4FGL_J2336.6-4115_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/57413/ltcube_582249601_582508801_4FGL_J2336.6-4115_daily_bin1323.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/57413/ft2_4FGL_J2336.6-4115_daily_bin1323.fits
.....................!
real 11.63
user 11.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57413/ft1_filtered_4FGL_J2336.6-4115_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/57413/ft2_4FGL_J2336.6-4115_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/57413/ltcube_582249601_582508801_4FGL_J2336.6-4115_daily_bin1323.fits outfile=/scratch/kocevski/57413/expmap_582249601_582508801_4FGL_J2336.6-4115_daily_bin1323.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/57413/ltcube_582249601_582508801_4FGL_J2336.6-4115_daily_bin1323.fits
.....................!
real 191.19
user 186.01
sys 4.82

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57413/ft1_filtered_4FGL_J2336.6-4115_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/57413/ft2_4FGL_J2336.6-4115_daily_bin1323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57413/Model_4FGL_J2336.6-4115_daily_bin1323.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/57413/ft1_filtered_4FGL_J2336.6-4115_daily_bin1323.fits.....................!
real 34.00
user 32.74
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89172E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12280E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9684       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25168E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14051E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.9184       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4812       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0529       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.8380       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    48.423       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.7378       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.3812       1.0000         .10000E-03   10000.    
    32 'Prefactor '    55.237       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .84921       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0304       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=   4017.926     FROM MIGRAD    STATUS=CONVERGED   1701 CALLS     5599 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.024        42.691        .78462E-04    .11302E-04
   2  Prefactor     .10000E-03    259.87        .57248E-02** at limit **
   3  Prefactor     48.196        44.338        .57754E-04    .44566E-04
   4  Prefactor     .10000E-03    30.881        .18142E-02** at limit **
   5  Prefactor     3.1546        45.551        .11413E-02    .14653E-04
   6  Prefactor     .10000E-03    5.3689        .14304E-02** at limit **
   7  Prefactor     23.438        9.7096        .82735E-04    .10347E-03
   8  Prefactor     .10000E-03    31.879        .18142E-02** at limit **
   9  Prefactor     .10000E-03    19.369        .18142E-02** at limit **
  10  Prefactor     3.5866        53.751        .21325E-03   -.10929E-05
  11  Prefactor     2.9712        10.122        .11784E-02    .20831E-03
  12  Prefactor     .10000E-03    36.460        .12555    ** at limit **
  13  Prefactor     .10000E-03    120.64        .20521E-02** at limit **
  14  Prefactor     .10000E-03    4.9281        .13738E-02** at limit **
  15  norm          .10000E-03    16.310        .18142E-02** at limit **
  16  norm          5.9163        5.8421        .14846E-03   -.43917E-04
  17  norm          .10000E-03    4.4376        .12975E-02** at limit **
  18  norm          6.4786        7.9431        .15765E-03    .19219E-04
  19  Prefactor     .10000E-03    6.7964        .15964E-02** at limit **
  20  Prefactor     .10000E-03    20.595        .18142E-02** at limit **
  21  Prefactor     17.408        39.564        .96061E-04    .88762E-05
  22  norm          4.0516        3.9319        .11846E-03   -.11538E-03
  23  Prefactor     .10000E-03    15.950        .18142E-02** at limit **
  24  norm          .10000E-03    .50707        .86517E-04** at limit **
  25  norm          4.8387        4.8344        .13266E-03    .26952E-04
  26  Prefactor     .10000E-03    1.7065        .80504E-03** at limit **
  27  Prefactor     48.425        29.538        .57625E-04    .59798E-04
  28  Prefactor     .10000E-03    19.189        .18142E-02** at limit **
  29  norm          .10000E-03    22.594        .18142E-02** at limit **
  30  Prefactor     4.7333        8.1214        .18486E-03    .80718E-04
  31  Prefactor     3.3842        4.0879        .13471E-03    .13372E-03
  32  Prefactor     55.219        64.037        .53972E-04    .13692E-05
  33  Normalizat    .84975        .26178        .24783E-03    .96380E-04
  34  Prefactor     1.0297        .28363        .25450E-03    .83087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0237
  Prefactor  = 0.0001
  Prefactor  = 48.196
  Prefactor  = 0.0001
  Prefactor  = 3.15463
  Prefactor  = 0.0001
  Prefactor  = 23.4377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58657
  Prefactor  = 2.97118
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.91626
  norm       = 0.0001
  norm       = 6.47863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4085
  norm       = 4.05158
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.83869
  Prefactor  = 0.0001
  Prefactor  = 48.4252
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.73332
  Prefactor  = 3.38422
  Prefactor  = 55.2185
  Normalizat = 0.849753
  Prefactor  = 1.02966
 **********
 **   18 **HESSE 
 **********

 FCN=   4017.926     FROM HESSE     STATUS=OK           712 CALLS     6311 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.024        42.684        .31385E-05   -1.4687    
   2  Prefactor     .10000E-03    271.40        .22899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.196        44.312        .11551E-04   -1.4318    
   4  Prefactor     .10000E-03    30.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1546        45.428        .45653E-04   -1.5353    
   6  Prefactor     .10000E-03    5.3696        .28609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.438        9.6978        .33094E-05   -1.4739    
   8  Prefactor     .10000E-03    31.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5866        53.733        .85301E-05   -1.5329    
  11  Prefactor     2.9712        10.114        .23567E-03   -1.5363    
  12  Prefactor     .10000E-03    35.989        .12701       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    120.66        .41043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9282        .27476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9163        5.8420        .59384E-05   -1.5221    
  17  norm          .10000E-03    4.4382        .25950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4786        7.9429        .63058E-05   -1.5199    
  19  Prefactor     .10000E-03    6.8007        .31929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.408        39.558        .38424E-05   -1.4873    
  22  norm          4.0516        3.9315        .23692E-04   -1.5305    
  23  Prefactor     .10000E-03    15.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .50707        .17303E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.8387        4.8341        .53063E-05   -1.5268    
  26  Prefactor     .10000E-03    1.7066        .16101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     48.425        29.530        .11525E-04   -1.4315    
  28  Prefactor     .10000E-03    19.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    22.594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.7333        8.1192        .73943E-05   -1.5273    
  31  Prefactor     3.3842        4.0854        .53886E-05   -1.5340    
  32  Prefactor     55.219        64.030        .21589E-05   -1.4220    
  33  Normalizat    .84975        .26209        .99131E-05   -.98249    
  34  Prefactor     1.0297        .28396        .10180E-04   -.91747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35818e-10
Minuit parameter uncertainties:
  1  42.7342
  2  0.000347712
  3  44.3426
  4  0.000126371
  5  23.9638
  6  1.18734e-05
  7  9.69846
  8  6.92846e-05
  9  1.30811e-05
  10  27.794
  11  10.1194
  12  0.000118101
  13  0.00056458
  14  1.29249e-05
  15  0.000108614
  16  5.84259
  17  8.59268e-06
  18  7.94416
  19  4.83721e-05
  20  3.61735e-05
  21  39.6171
  22  3.93179
  23  0.000115241
  24  3.68935e-06
  25  4.83448
  26  1.63709e-05
  27  29.5389
  28  5.05122e-05
  29  3.04327e-05
  30  8.12112
  31  4.0857
  32  64.1103
  33  0.262478
  34  0.284371
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.839e+00  4.834e+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.030e+00  2.844e-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.498e-01  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/57413/likelihoodResults_582249601_582508801_4FGL_J2336.6-4115_daily_bin1323.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) = 4017.86668472
delta logL = 0.0592935029922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4017.85839456
delta logL = 0.0675836675796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2440       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5328       1.0000          .0000       5.0000    
     3 'Normalizat'    .83825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0371       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=   4017.858     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      229 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2443        4.7813        .11565E-03   -.11844E-02
   2  alpha         2.5328        .86686        .13956E-01   -.10299E-03
   3  Normalizat    .83829        .24979        .24930E-03    .12308E-03
   4  Prefactor     1.0370        .27899        .25365E-03    .14343E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.24425
  alpha      = 2.53277
  Normalizat = 0.838289
  Prefactor  = 1.03701
 **********
 **   18 **HESSE 
 **********

 FCN=   4017.858     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2443        4.6237        .46261E-05   -1.5296    
   2  alpha         2.5328        .83897        .55823E-03    .13107E-01
   3  Normalizat    .83829        .24995        .99722E-05   -.98664    
   4  Prefactor     1.0370        .27919        .50730E-04   -.91506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10294e-09
Minuit parameter uncertainties:
  1  4.62413
  2  0.85558
  3  0.25029
  4  0.27958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57413': 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) = 4017.85839454
delta logL = 0.0675836868268

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.244e+00  4.624e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.533e+00  8.556e-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:  1.037e+00  2.796e-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.383e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.53 +/- 0.86
Photon Flux (Free Index): 4.16e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.14e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='1.22e-05', photon_flux_error='3.16e-08', dlogl='6.76e-02', energy_flux='1.28e-05', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-30 02:09:29.266542', photon_index_error2='0.86', photon_index2='2.53', ts='2.28', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.14e-05', EG='0.85', time_epoch_completed='1632992969.27', return_code='0', job_id='57413', GAL2='1.04', EG2='0.84', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.52e-08', ts2='2.41', photon_index='2.22' WHERE bin_id='1323' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:09:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 57413: <4FGL_J2336.6-4115_daily_bin1323> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1323> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 01:55:31 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 01:55:33 2021
Terminated at Thu Sep 30 02:09:30 2021
Results reported at Thu Sep 30 02:09:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1323 354.164 -41.2579 582249601 582508801 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

