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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1403
RA = 354.164, Dec = -41.2579
tmin = 602985601, tmax = 603244801
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='57534', job_status='RUN', time_executed='2021-09-30 01:57:12.353070', time_epoch_executed='1632992232.35' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57534/ft1_4FGL_J2336.6-4115_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57534/ft2_4FGL_J2336.6-4115_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57534/ft1_4FGL_J2336.6-4115_daily_bin1403.fits outfile=/scratch/kocevski/57534/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1403.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=602985601.0 tmax=603244801.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.01
user 2.80
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57534/ft1_filtered_4FGL_J2336.6-4115_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/57534/ft2_4FGL_J2336.6-4115_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/57534/ltcube_602985601_603244801_4FGL_J2336.6-4115_daily_bin1403.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/57534/ft2_4FGL_J2336.6-4115_daily_bin1403.fits
.....................!
real 12.05
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57534/ft1_filtered_4FGL_J2336.6-4115_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/57534/ft2_4FGL_J2336.6-4115_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/57534/ltcube_602985601_603244801_4FGL_J2336.6-4115_daily_bin1403.fits outfile=/scratch/kocevski/57534/expmap_602985601_603244801_4FGL_J2336.6-4115_daily_bin1403.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/57534/ltcube_602985601_603244801_4FGL_J2336.6-4115_daily_bin1403.fits
.....................!
real 188.93
user 184.76
sys 3.86

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/57534/ft1_filtered_4FGL_J2336.6-4115_daily_bin1403.fits scfile=/scratch/kocevski/57534/ft2_4FGL_J2336.6-4115_daily_bin1403.fits outfile=/scratch/kocevski/57534/cmap_602985601_603244801_4FGL_J2336.6-4115_daily_bin1403.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57534/ft1_filtered_4FGL_J2336.6-4115_daily_bin1403.fits scfile=/scratch/kocevski/57534/ft2_4FGL_J2336.6-4115_daily_bin1403.fits outfile=/scratch/kocevski/57534/cmap_HighResolution_602985601_603244801_4FGL_J2336.6-4115_daily_bin1403.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57534/ft1_filtered_4FGL_J2336.6-4115_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/57534/ft2_4FGL_J2336.6-4115_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57534/Model_4FGL_J2336.6-4115_daily_bin1403.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/57534/ft1_filtered_4FGL_J2336.6-4115_daily_bin1403.fits......................!
real 28.69
user 27.49
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.401       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2811       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23238E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77193E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0783       1.0000         .10000E-03   10000.    
    15 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.266       1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.936       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11494E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    12.821       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.9596       1.0000         .10000E-03   10000.    
    25 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.5574       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.0547       1.0000         .10000E-03   10000.    
    32 'Prefactor '    16.885       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .92552       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0786       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=   2992.907     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     4783 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.015        .87047E-07** at limit **
   2  Prefactor     .10000E-03    17.105        .91782E-07** at limit **
   3  Prefactor     .10000E-03    25.950        .25932E-06** at limit **
   4  Prefactor     .10000E-03    14.004        .81675E-07** at limit **
   5  Prefactor     .10000E-03    31.603        .33161E-06** at limit **
   6  Prefactor     11.399        8.2497        .17801E-07   -.23518E-04
   7  Prefactor     7.2823        6.4186       -.84978E-06   -.69085E-03
   8  Prefactor     .10037E-03    56.894        .37003E-05** at limit **
   9  Prefactor     .10002E-03    633.86       -.20557E-04** at limit **
  10  Prefactor     71.072        152.95        .15928E-05   -.79606E-05
  11  Prefactor     .10000E-03    17.843       -.27978E-05** at limit **
  12  Prefactor     .10000E-03    70.335       -.24905E-07** at limit **
  13  Prefactor     .10000E-03    62.649       -.54829E-06** at limit **
  14  Prefactor     8.1069        26.324        .18435E-07    .10100E-05
  15  norm          .10000E-03    8.2313        .20447E-07** at limit **
  16  norm          .10000E-03    4.6981        .29818E-08** at limit **
  17  norm          .10000E-03    3.4938        .57186E-07** at limit **
  18  norm          .10000E-03    15.896        .47391E-06** at limit **
  19  Prefactor     19.272        12.997       -.24695E-06    .27972E-04
  20  Prefactor     62.063        69.190       -.40244E-07    .24884E-06
  21  Prefactor     .10000E-03    206.24        .18645E-05** at limit **
  22  norm          12.817        9.0642        .67750E-08   -.11538E-04
  23  Prefactor     .10000E-03    36.914        .20749E-06** at limit **
  24  norm          2.9588        1.9594       -.21515E-07    .16847E-06
  25  norm          .10000E-03    2.4018        .13025E-06** at limit **
  26  Prefactor     5.5540        4.5049        .26621E-06   -.10759E-03
  27  Prefactor     .10000E-03    48.264        .69284E-06** at limit **
  28  Prefactor     .10000E-03    40.851        .10696E-06** at limit **
  29  norm          .10000E-03    15.166        .10838E-08** at limit **
  30  Prefactor     .10000E-03    8.2008        .53663E-06** at limit **
  31  Prefactor     5.0508        6.8851        .24200E-06   -.61028E-04
  32  Prefactor     16.925        67.855       -.69473E-07   -.49901E-05
  33  Normalizat    .92548        .27064       -.11726E-05   -.13726E-03
  34  Prefactor     1.0788        .29392        .10738E-05   -.15508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3988
  Prefactor  = 7.28233
  Prefactor  = 0.000100367
  Prefactor  = 0.000100019
  Prefactor  = 71.0722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.10691
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2718
  Prefactor  = 62.0632
  Prefactor  = 0.0001
  norm       = 12.8169
  Prefactor  = 0.0001
  norm       = 2.95877
  norm       = 0.0001
  Prefactor  = 5.554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.05085
  Prefactor  = 16.9252
  Normalizat = 0.925478
  Prefactor  = 1.07881
 **********
 **   18 **HESSE 
 **********

 FCN=   2992.907     FROM HESSE     STATUS=OK           730 CALLS     5513 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.399        8.2510        .11865E-03   -1.5033    
   7  Prefactor     7.2823        7.3449        .11526E-03   -1.5168    
   8  Prefactor     .10037E-03    84.157        .88339E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    606.31        .20923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     71.072        153.31        .23754E-03   -1.4020    
  11  Prefactor     .10000E-03    17.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    70.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    62.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1069        26.274        .14106E-03   -1.5138    
  15  norm          .10000E-03    8.2324        .15331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6998        .11581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.4940        .99858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    16.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.272        12.963        .91250E-04   -1.4830    
  20  Prefactor     62.063        69.403        .50986E-04   -1.4131    
  21  Prefactor     .10000E-03    207.18        .20668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.817        9.0685        .11187E-03   -1.4992    
  23  Prefactor     .10000E-03    37.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9588        1.9538        .57475E-04   -1.5364    
  25  norm          .10000E-03    2.4039        .82757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.5540        4.4870        .99340E-04   -1.5237    
  27  Prefactor     .10000E-03    48.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    40.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    15.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.3084        .15253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.0508        6.9025        .15406E-03   -1.5258    
  32  Prefactor     16.925        68.058        .97470E-04   -1.4885    
  33  Normalizat    .92548        .32720        .25371E-03   -.95571    
  34  Prefactor     1.0788        .35190        .27218E-03   -.90147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44885e-10
Minuit parameter uncertainties:
  1  1.81465e-05
  2  8.42428e-06
  3  2.62355e-06
  4  8.94714e-07
  5  3.00184e-05
  6  8.25178
  7  7.34583
  8  0.0111335
  9  0.00693361
  10  154.17
  11  0.000140987
  12  6.11222e-05
  13  7.38512e-05
  14  26.3111
  15  5.14898e-07
  16  8.53453e-07
  17  1.2572e-06
  18  2.10403e-05
  19  12.9648
  20  69.4939
  21  9.53991e-05
  22  9.06943
  23  3.77462e-07
  24  1.95388
  25  2.1433e-06
  26  4.4873
  27  9.88812e-05
  28  1.78257e-05
  29  8.33995e-06
  30  1.45972e-05
  31  6.90356
  32  68.0141
  33  0.327905
  34  0.352662
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.079e+00  3.527e-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:  9.255e-01  3.279e-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: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57534/likelihoodResults_602985601_603244801_4FGL_J2336.6-4115_daily_bin1403.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) = 2992.90879548
delta logL = -0.00190062544834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2992.90689485
delta logL = 1.17324816529e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2142       1.0000          .0000       5.0000    
     3 'Normalizat'    .92549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0788       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=   2992.907     FROM MIGRAD    STATUS=FAILED        81 CALLS      219 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    5.1099        .82776E-03** at limit **
   2  alpha         2.1589        3.5484        .16599        .27033E-05
   3  Normalizat    .92548        .30273        .25371E-03   -.60046E-05
   4  Prefactor     1.0788        .34932        .27217E-03   -.35922E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2992.907     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      345 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10014E-03    5.1099        .20020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1589        3.5484        .40258E-03   -.13685    
   3  Normalizat    .92548        .30273        .78094E-04   -.95571    
   4  Prefactor     1.0788        .34932        .72949E-04   -.90146    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2992.907     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      377 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4197        .16555E-03** at limit **
   2  alpha         2.0952        2.7382        .33197E-01   -.10274E-08
   3  Normalizat    .92548        .30308        .10148E-04    .92982E-05
   4  Prefactor     1.0788        .34973        .10887E-04    .66832E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.0952
  Normalizat = 0.925478
  Prefactor  = 1.07882
 **********
 **   18 **HESSE 
 **********

 FCN=   2992.907     FROM HESSE     STATUS=OK            23 CALLS      400 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4186        .33110E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0952        2.7301        .13279E-02   -.16264    
   3  Normalizat    .92548        .30290        .20296E-05   -.95571    
   4  Prefactor     1.0788        .34948        .21774E-05   -.90146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02165e-13
Minuit parameter uncertainties:
  1  4.51281e-07
  2  239.914
  3  0.303457
  4  0.350223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57534': 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) = 2992.90689472
delta logL = 1.25869973999e-07

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  4.513e-07  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.095e+00  2.399e+02  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.079e+00  3.502e-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:  9.255e-01  3.035e-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/57534/cmap_HighResolution_602985601_603244801_4FGL_J2336.6-4115_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-30 02:08:08.324725', job_id='57534', GAL2='1.08', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632992888.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1403' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:08:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 57534: <4FGL_J2336.6-4115_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1403 354.164 -41.2579 602985601 603244801 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 :                                   631.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

