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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1341
RA = 354.164, Dec = -41.2579
tmin = 586915201, tmax = 587174401
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='57438', job_status='RUN', time_executed='2021-09-30 01:55:58.444400', time_epoch_executed='1632992158.44' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57438/ft1_4FGL_J2336.6-4115_daily_bin1341.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57438/ft2_4FGL_J2336.6-4115_daily_bin1341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57438/ft1_4FGL_J2336.6-4115_daily_bin1341.fits outfile=/scratch/kocevski/57438/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1341.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=586915201.0 tmax=587174401.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.59
user 3.39
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57438/ft1_filtered_4FGL_J2336.6-4115_daily_bin1341.fits" evtable="EVENTS" scfile=/scratch/kocevski/57438/ft2_4FGL_J2336.6-4115_daily_bin1341.fits sctable="SC_DATA" outfile=/scratch/kocevski/57438/ltcube_586915201_587174401_4FGL_J2336.6-4115_daily_bin1341.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/57438/ft2_4FGL_J2336.6-4115_daily_bin1341.fits
.....................!
real 12.28
user 11.97
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57438/ft1_filtered_4FGL_J2336.6-4115_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/57438/ft2_4FGL_J2336.6-4115_daily_bin1341.fits sctable="SC_DATA" expcube=/scratch/kocevski/57438/ltcube_586915201_587174401_4FGL_J2336.6-4115_daily_bin1341.fits outfile=/scratch/kocevski/57438/expmap_586915201_587174401_4FGL_J2336.6-4115_daily_bin1341.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/57438/ltcube_586915201_587174401_4FGL_J2336.6-4115_daily_bin1341.fits
.....................!
real 190.33
user 185.01
sys 5.01

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/57438/ft1_filtered_4FGL_J2336.6-4115_daily_bin1341.fits scfile=/scratch/kocevski/57438/ft2_4FGL_J2336.6-4115_daily_bin1341.fits outfile=/scratch/kocevski/57438/cmap_586915201_587174401_4FGL_J2336.6-4115_daily_bin1341.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.16

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57438/ft1_filtered_4FGL_J2336.6-4115_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/57438/ft2_4FGL_J2336.6-4115_daily_bin1341.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57438/Model_4FGL_J2336.6-4115_daily_bin1341.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/57438/ft1_filtered_4FGL_J2336.6-4115_daily_bin1341.fits.....................!
real 34.88
user 33.59
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.895       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.306       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7782       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    89.747       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3787       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.020       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7840       1.0000         .10000E-03   10000.    
    25 'norm      '    .10344E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1466       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19753E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.5640       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4527       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .40104       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=   3993.645     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     4858 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.368        59.865        .45613E-06   -.26399E-05
   2  Prefactor     .10000E-03    9.8795        .92871E-08** at limit **
   3  Prefactor     52.862        46.005        .86212E-06   -.18998E-04
   4  Prefactor     .10000E-03    56.707       -.14119E-05** at limit **
   5  Prefactor     .10000E-03    7.6023       -.44444E-07** at limit **
   6  Prefactor     3.3585        8.9746        .93897E-06    .48438E-04
   7  Prefactor     .10000E-03    2.2602        .64684E-08** at limit **
   8  Prefactor     36.548        31.644        .20465E-06   -.11382E-04
   9  Prefactor     .10000E-03    36.587        .72124E-06** at limit **
  10  Prefactor     18.814        35.082        .50828E-06   -.42081E-05
  11  Prefactor     .10000E-03    14.720       -.61763E-06** at limit **
  12  Prefactor     65.407        69.599       -.28591E-05   -.11248E-04
  13  Prefactor     .10000E-03    26.550       -.47925E-06** at limit **
  14  Prefactor     .10000E-03    27.452       -.26884E-06** at limit **
  15  norm          .10000E-03    7.1663        .44991E-08** at limit **
  16  norm          .10000E-03    2.6782       -.16184E-08** at limit **
  17  norm          .10000E-03    4.3348        .35422E-06** at limit **
  18  norm          4.7789        6.7505        .15357E-06    .22406E-04
  19  Prefactor     .10000E-03    17.980        .65507E-07** at limit **
  20  Prefactor     89.864        70.622       -.21318E-05   -.56319E-04
  21  Prefactor     .10000E-03    41.907        .71038E-06** at limit **
  22  norm          1.3748        7.0818        .13013E-05    .63253E-04
  23  Prefactor     35.032        24.644        .38887E-06   -.82301E-04
  24  norm          1.7843        1.5700        .29453E-07   -.17700E-03
  25  norm          .10000E-03    3.1524        .21959E-06** at limit **
  26  Prefactor     2.1551        4.1467        .85051E-08   -.19528E-03
  27  Prefactor     .10017E-03    28.398        .15384E-05** at limit **
  28  Prefactor     .10000E-03    23.732       -.49468E-06** at limit **
  29  norm          .10000E-03    18.343        .29977E-06** at limit **
  30  Prefactor     9.5655        8.4609        .27709E-06   -.36641E-05
  31  Prefactor     .10000E-03    1.7888       -.51455E-07** at limit **
  32  Prefactor     .10000E-03    19.383        .14038E-06** at limit **
  33  Normalizat    1.4526        .27318       -.32006E-05   -.15404E-04
  34  Prefactor     .40115        .26981        .64000E-05   -.13291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3682
  Prefactor  = 0.0001
  Prefactor  = 52.8619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35855
  Prefactor  = 0.0001
  Prefactor  = 36.5485
  Prefactor  = 0.0001
  Prefactor  = 18.8142
  Prefactor  = 0.0001
  Prefactor  = 65.4065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.77891
  Prefactor  = 0.0001
  Prefactor  = 89.864
  Prefactor  = 0.0001
  norm       = 1.3748
  Prefactor  = 35.0315
  norm       = 1.78431
  norm       = 0.0001
  Prefactor  = 2.15514
  Prefactor  = 0.000100167
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.56554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45263
  Prefactor  = 0.401152
 **********
 **   18 **HESSE 
 **********

 FCN=   3993.645     FROM HESSE     STATUS=OK           728 CALLS     5586 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.368        59.758        .12441E-03   -1.5064    
   2  Prefactor     .10000E-03    9.8864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.862        45.854        .55147E-04   -1.4253    
   4  Prefactor     .10000E-03    57.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6031        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3585        8.9972        .11045E-02   -1.5341    
   7  Prefactor     .10000E-03    2.2638        .92666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.548        31.681        .66304E-04   -1.4498    
   9  Prefactor     .10000E-03    36.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.814        35.057        .92304E-04   -1.4840    
  11  Prefactor     .10000E-03    15.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     65.407        69.824        .24831E-03   -1.4089    
  13  Prefactor     .10000E-03    26.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.1707        .16523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6787        .10100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3422        .12830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7789        6.7448        .92028E-03   -1.5271    
  19  Prefactor     .10000E-03    18.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     89.864        70.764        .21207E-03   -1.3809    
  21  Prefactor     .10000E-03    41.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3748        6.8092        .25403E-03   -1.5473    
  23  Prefactor     35.032        24.366        .67719E-04   -1.4524    
  24  norm          1.7843        1.5468        .67634E-04   -1.5441    
  25  norm          .10000E-03    3.2295        .21894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.1551        3.8387        .15744E-03   -1.5414    
  27  Prefactor     .10017E-03    142.84        .57421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    23.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    18.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     9.5655        8.4580        .64791E-03   -1.5089    
  31  Prefactor     .10000E-03    1.7947        .82526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    19.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.4526        .29018        .20509E-03   -.79118    
  34  Prefactor     .40115        .28245        .38514E-03   -1.1675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20391e-09
Minuit parameter uncertainties:
  1  49.8584
  2  7.21028e-06
  3  45.885
  4  4.45407e-05
  5  7.58469e-07
  6  9.00084
  7  1.88857e-07
  8  31.6953
  9  2.52409e-06
  10  35.095
  11  3.60595e-05
  12  69.9113
  13  1.27669e-05
  14  1.71221e-05
  15  1.99011e-06
  16  6.15848e-07
  17  9.14881e-06
  18  6.74585
  19  5.9971e-05
  20  70.8308
  21  2.29241e-05
  22  6.12013
  23  24.3728
  24  1.54682
  25  1.06611e-05
  26  3.83914
  27  0.00980115
  28  6.50725e-06
  29  3.90974e-06
  30  8.45906
  31  1.3937e-06
  32  1.55332e-06
  33  0.290512
  34  0.283431
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  1.066e-05  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:  4.012e-01  2.834e-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.453e+00  2.905e-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: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57438/likelihoodResults_586915201_587174401_4FGL_J2336.6-4115_daily_bin1341.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3993.64630402
delta logL = -0.00146146953739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3993.61031258
delta logL = 0.0345299755659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92672E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3969       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41460       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3993.610     FROM MIGRAD    STATUS=FAILED       105 CALLS      336 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94288E-01    62.098        .57343E-03    .68000E-02
   2  alpha         4.3917        2.7539        .91167E-01    .12681E-03
   3  Normalizat    1.4324        .13033        .20621E-03   -.12294E-04
   4  Prefactor     .41454        .13610        .37911E-03    .83965E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3993.610     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      430 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94288E-01    62.098        .49335E-04    .68000E-02
   2  alpha         4.3917        2.7539        .46831E-02    .12681E-03
   3  Normalizat    1.4324        .13033        .13382E-03   -.12294E-04
   4  Prefactor     .41454        .13610        .12313E-03    .83965E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3993.610     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      469 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94289E-01    3.8113        .11469E-03   -.13809E-03
   2  alpha         4.3917        2.9519        .18233E-01   -.11395E-05
   3  Normalizat    1.4324        .27677        .82485E-05   -.11853E-04
   4  Prefactor     .41454        .28226        .15165E-04    .10496E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0942887
  alpha      = 4.39167
  Normalizat = 1.43237
  Prefactor  = 0.41454
 **********
 **   18 **HESSE 
 **********

 FCN=   3993.610     FROM HESSE     STATUS=OK            27 CALLS      496 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94289E-01    1.3166        .45874E-05   -1.5647    
   2  alpha         4.3917        4.6802        .72934E-03    .85820    
   3  Normalizat    1.4324        .27651        .16497E-05   -.79697    
   4  Prefactor     .41454        .28165        .30329E-05   -1.1607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61721e-12
Minuit parameter uncertainties:
  1  0.704307
  2  4.22902
  3  0.2768
  4  0.282595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57438': 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) = 3993.61030878
delta logL = 0.0345337734761

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  9.429e-02  7.043e-01  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  4.392e+00  4.229e+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:  4.145e-01  2.826e-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.432e+00  2.768e-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/57438/cmap_HighResolution_586915201_587174401_4FGL_J2336.6-4115_daily_bin1341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-30 02:08:24.772733', job_id='57438', GAL2='0.41', fit_tolerance='1e-08', EG2='1.43', EG='1.45', time_epoch_completed='1632992904.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='3.45e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1341' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:08:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 57438: <4FGL_J2336.6-4115_daily_bin1341> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1341 354.164 -41.2579 586915201 587174401 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.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

