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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1023
RA = 354.164, Dec = -41.2579
tmin = 504489601, tmax = 504748801
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='55970', job_status='RUN', time_executed='2021-09-30 01:50:52.890318', time_epoch_executed='1632991852.89' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55970

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55970/ft1_4FGL_J2336.6-4115_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55970/ft2_4FGL_J2336.6-4115_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55970/ft1_4FGL_J2336.6-4115_daily_bin1023.fits outfile=/scratch/kocevski/55970/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1023.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=504489601.0 tmax=504748801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.44
user 4.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55970/ft1_filtered_4FGL_J2336.6-4115_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/55970/ft2_4FGL_J2336.6-4115_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/55970/ltcube_504489601_504748801_4FGL_J2336.6-4115_daily_bin1023.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/55970/ft2_4FGL_J2336.6-4115_daily_bin1023.fits
.....................!
real 12.06
user 11.65
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55970/ft1_filtered_4FGL_J2336.6-4115_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/55970/ft2_4FGL_J2336.6-4115_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/55970/ltcube_504489601_504748801_4FGL_J2336.6-4115_daily_bin1023.fits outfile=/scratch/kocevski/55970/expmap_504489601_504748801_4FGL_J2336.6-4115_daily_bin1023.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/55970/ltcube_504489601_504748801_4FGL_J2336.6-4115_daily_bin1023.fits
.....................!
real 192.24
user 186.55
sys 5.21

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/55970/ft1_filtered_4FGL_J2336.6-4115_daily_bin1023.fits scfile=/scratch/kocevski/55970/ft2_4FGL_J2336.6-4115_daily_bin1023.fits outfile=/scratch/kocevski/55970/cmap_504489601_504748801_4FGL_J2336.6-4115_daily_bin1023.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55970/ft1_filtered_4FGL_J2336.6-4115_daily_bin1023.fits scfile=/scratch/kocevski/55970/ft2_4FGL_J2336.6-4115_daily_bin1023.fits outfile=/scratch/kocevski/55970/cmap_HighResolution_504489601_504748801_4FGL_J2336.6-4115_daily_bin1023.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55970/ft1_filtered_4FGL_J2336.6-4115_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/55970/ft2_4FGL_J2336.6-4115_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55970/Model_4FGL_J2336.6-4115_daily_bin1023.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/55970/ft1_filtered_4FGL_J2336.6-4115_daily_bin1023.fits.....................!
real 36.49
user 35.21
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.128       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.217       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.467       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.286       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.196       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0475       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.713       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7913       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.8758       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2454       1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .40957       1.0000         .10000E-03   10000.    
    25 'norm      '    5.6612       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1936       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.789       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.5609       1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.530       1.0000         .10000E-03   10000.    
    31 'Prefactor '    10.866       1.0000         .10000E-03   10000.    
    32 'Prefactor '    26.388       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .83298       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .90181       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=   4486.822     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     4806 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.059        58.300        .18348E-05    .19527E-04
   2  Prefactor     20.218        19.244        .31477E-07    .13241E-04
   3  Prefactor     .10000E-03    41.218       -.72589E-06** at limit **
   4  Prefactor     32.467        30.525       -.14342E-08    .15225E-05
   5  Prefactor     .10000E-03    7.7951        .17338E-07** at limit **
   6  Prefactor     .10000E-03    3.9105       -.25660E-06** at limit **
   7  Prefactor     .10000E-03    1.9557       -.14756E-06** at limit **
   8  Prefactor     39.291        28.001        .10159E-06    .31049E-05
   9  Prefactor     .10000E-03    26.413        .68367E-07** at limit **
  10  Prefactor     47.185        31.852        .15472E-06    .11646E-04
  11  Prefactor     1.0492        15.286        .64323E-06   -.15586E-04
  12  Prefactor     .10000E-03    38.450       -.78839E-06** at limit **
  13  Prefactor     .10000E-03    32.018       -.39431E-06** at limit **
  14  Prefactor     14.718        18.347        .10865E-05    .85632E-04
  15  norm          .10000E-03    11.768       -.58171E-06** at limit **
  16  norm          4.7905        4.9395       -.48407E-07   -.72684E-04
  17  norm          .10000E-03    1.6815       -.64047E-07** at limit **
  18  norm          5.8772        6.8420        .37873E-06    .27736E-04
  19  Prefactor     .10000E-03    2.8111       -.20400E-06** at limit **
  20  Prefactor     .10000E-03    18.628       -.49705E-06** at limit **
  21  Prefactor     5.1782        171.34        .63670E-05    .67463E-05
  22  norm          .10000E-03    2.2423       -.24444E-06** at limit **
  23  Prefactor     .10000E-03    22.541       -.10649E-05** at limit **
  24  norm          .40898        1.0537       -.38976E-06   -.37903E-03
  25  norm          5.6583        4.3395        .47178E-07    .49138E-04
  26  Prefactor     3.1944        5.2875       -.66862E-08    .96250E-04
  27  Prefactor     17.790        33.847        .88834E-06    .47319E-04
  28  Prefactor     .10000E-03    24.282        .23290E-06** at limit **
  29  norm          6.5625        36.947       -.25410E-06    .38273E-05
  30  Prefactor     18.532        8.4816        .13940E-06    .20482E-04
  31  Prefactor     10.865        6.2691        .15619E-06    .69064E-04
  32  Prefactor     26.388        37.773        .14923E-06    .19263E-05
  33  Normalizat    .83294        .22292       -.23517E-05    .19776E-03
  34  Prefactor     .90179        .24016        .27906E-05    .19806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.0591
  Prefactor  = 20.2178
  Prefactor  = 0.0001
  Prefactor  = 32.4673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.2906
  Prefactor  = 0.0001
  Prefactor  = 47.1846
  Prefactor  = 1.04922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7178
  norm       = 0.0001
  norm       = 4.79053
  norm       = 0.0001
  norm       = 5.87716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.17817
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.408981
  norm       = 5.65832
  Prefactor  = 3.19436
  Prefactor  = 17.7898
  Prefactor  = 0.0001
  norm       = 6.56254
  Prefactor  = 18.5316
  Prefactor  = 10.865
  Prefactor  = 26.3875
  Normalizat = 0.832937
  Prefactor  = 0.90179
 **********
 **   18 **HESSE 
 **********

 FCN=   4486.822     FROM HESSE     STATUS=OK           740 CALLS     5546 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.059        58.324        .69620E-04   -1.4557    
   2  Prefactor     20.218        19.244        .89079E-04   -1.4808    
   3  Prefactor     .10000E-03    41.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.467        30.524        .70323E-04   -1.4568    
   5  Prefactor     .10000E-03    7.7963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9202        .12937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9593        .91437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.291        28.008        .63949E-04   -1.4453    
   9  Prefactor     .10000E-03    26.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.185        31.871        .58366E-04   -1.4333    
  11  Prefactor     1.0492        15.438        .24235E-02   -1.5503    
  12  Prefactor     .10000E-03    38.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.718        18.119        .10442E-03   -1.4941    
  15  norm          .10000E-03    11.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7905        4.9855        .14563E-03   -1.5270    
  17  norm          .10000E-03    1.6839        .84832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.8772        6.8301        .82835E-03   -1.5223    
  19  Prefactor     .10000E-03    2.8174        .10963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1782        169.66        .17551E-03   -1.5253    
  22  norm          .10000E-03    2.2829        .97922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .40898        .99636        .99531E-03   -1.5580    
  25  norm          5.6583        4.3344        .11748E-03   -1.5232    
  26  Prefactor     3.1944        5.2277        .14899E-03   -1.5350    
  27  Prefactor     17.790        33.637        .94962E-04   -1.4864    
  28  Prefactor     .10000E-03    24.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.5625        36.956        .15667E-03   -1.5196    
  30  Prefactor     18.532        8.4712        .93042E-04   -1.4847    
  31  Prefactor     10.865        6.2725        .11679E-03   -1.5049    
  32  Prefactor     26.388        37.761        .77985E-04   -1.4680    
  33  Normalizat    .83294        .24101        .24171E-03   -.98858    
  34  Prefactor     .90179        .25729        .25922E-03   -.96079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96967e-09
Minuit parameter uncertainties:
  1  58.4253
  2  19.2496
  3  2.96243e-05
  4  30.5386
  5  5.72518e-07
  6  1.96084e-06
  7  1.32269e-06
  8  28.017
  9  1.75012e-06
  10  31.8824
  11  8.05143
  12  4.5954e-05
  13  2.24225e-05
  14  18.1258
  15  1.47363e-05
  16  4.98589
  17  8.1923e-07
  18  6.83096
  19  1.18191e-06
  20  1.42834e-05
  21  59.4632
  22  3.40047e-06
  23  7.26209e-06
  24  0.996396
  25  4.33459
  26  5.22845
  27  33.6728
  28  6.54088e-06
  29  31.1756
  30  8.47175
  31  6.27283
  32  37.7949
  33  0.241318
  34  0.257638
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.018e-01  2.576e-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.329e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.96
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/55970/likelihoodResults_504489601_504748801_4FGL_J2336.6-4115_daily_bin1023.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) = 4486.82156735
delta logL = 0.000555687757696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4486.8214735
delta logL = 0.000649536877972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6059       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2481       1.0000          .0000       5.0000    
     3 'Normalizat'    .83165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90251       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=   4486.821     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5965        120.36        .42418E-02    .79547E-04
   2  alpha         2.2450        2.7254        .41419        .20152E-04
   3  Normalizat    .83176        .10106        .44022E-01    .11716E-04
   4  Prefactor     .90264        .84363E-01    .45037E-01    .89964E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.59648
  alpha      = 2.24501
  Normalizat = 0.831757
  Prefactor  = 0.90264
 **********
 **   18 **HESSE 
 **********

 FCN=   4486.821     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5965        4.6984        .11635E-03   -1.5235    
   2  alpha         2.2450        .78256        .14488E-01   -.10218    
   3  Normalizat    .83176        .22867        .24186E-03   -.98901    
   4  Prefactor     .90264        .25388        .25911E-03   -.96049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3917e-12
Minuit parameter uncertainties:
  1  4.69872
  2  0.796083
  3  0.228937
  4  0.254212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55970': 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) = 4486.82145772
delta logL = 0.000665316111736

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.026e-01  2.542e-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.318e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.25 +/- 0.80
Photon Flux (Free Index): 3.79e-08 +/- 3.67e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.24e-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/55970/cmap_HighResolution_504489601_504748801_4FGL_J2336.6-4115_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-05', comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='1.48e-05', photon_flux_error='2.84e-08', dlogl='6.65e-04', energy_flux='1.50e-05', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-30 02:04:03.729779', photon_index_error2='0.80', photon_index2='2.25', ts='3.96', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.24e-05', EG='0.83', time_epoch_completed='1632992643.73', return_code='0', job_id='55970', GAL2='0.90', EG2='0.83', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.67e-08', ts2='3.94', photon_index='2.22' WHERE bin_id='1023' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 55970: <4FGL_J2336.6-4115_daily_bin1023> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1023> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 01:50:25 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:50:27 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:50:27 2021
Terminated at Thu Sep 30 02:04:04 2021
Results reported at Thu Sep 30 02:04:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1023 354.164 -41.2579 504489601 504748801 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 :                                   777.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

