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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1465
RA = 354.164, Dec = -41.2579
tmin = 619056001, tmax = 619315201
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='58596', job_status='RUN', time_executed='2021-09-30 02:01:25.736904', time_epoch_executed='1632992485.74' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58596/ft1_4FGL_J2336.6-4115_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58596/ft2_4FGL_J2336.6-4115_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58596/ft1_4FGL_J2336.6-4115_daily_bin1465.fits outfile=/scratch/kocevski/58596/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1465.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=619056001.0 tmax=619315201.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.62
user 3.39
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58596/ft1_filtered_4FGL_J2336.6-4115_daily_bin1465.fits" evtable="EVENTS" scfile=/scratch/kocevski/58596/ft2_4FGL_J2336.6-4115_daily_bin1465.fits sctable="SC_DATA" outfile=/scratch/kocevski/58596/ltcube_619056001_619315201_4FGL_J2336.6-4115_daily_bin1465.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/58596/ft2_4FGL_J2336.6-4115_daily_bin1465.fits
.....................!
real 11.98
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58596/ft1_filtered_4FGL_J2336.6-4115_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/58596/ft2_4FGL_J2336.6-4115_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/58596/ltcube_619056001_619315201_4FGL_J2336.6-4115_daily_bin1465.fits outfile=/scratch/kocevski/58596/expmap_619056001_619315201_4FGL_J2336.6-4115_daily_bin1465.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/58596/ltcube_619056001_619315201_4FGL_J2336.6-4115_daily_bin1465.fits
.....................!
real 191.61
user 186.43
sys 4.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/58596/ft1_filtered_4FGL_J2336.6-4115_daily_bin1465.fits scfile=/scratch/kocevski/58596/ft2_4FGL_J2336.6-4115_daily_bin1465.fits outfile=/scratch/kocevski/58596/cmap_619056001_619315201_4FGL_J2336.6-4115_daily_bin1465.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58596/ft1_filtered_4FGL_J2336.6-4115_daily_bin1465.fits scfile=/scratch/kocevski/58596/ft2_4FGL_J2336.6-4115_daily_bin1465.fits outfile=/scratch/kocevski/58596/cmap_HighResolution_619056001_619315201_4FGL_J2336.6-4115_daily_bin1465.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/58596/ft1_filtered_4FGL_J2336.6-4115_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/58596/ft2_4FGL_J2336.6-4115_daily_bin1465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58596/Model_4FGL_J2336.6-4115_daily_bin1465.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/58596/ft1_filtered_4FGL_J2336.6-4115_daily_bin1465.fits.....................!
real 32.58
user 31.35
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3986       1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.052       1.0000         .10000E-03   10000.    
     9 'Prefactor '    124.65       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    94.160       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6310       1.0000         .10000E-03   10000.    
    18 'norm      '    .67546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11486E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.893       1.0000         .10000E-03   10000.    
    24 'norm      '    .21361       1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .17549E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.8491       1.0000         .10000E-03   10000.    
    32 'Prefactor '    116.55       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1060       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .56978       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=   3546.795     FROM MIGRAD    STATUS=CONVERGED    951 CALLS     4878 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.879        .24137E-06** at limit **
   2  Prefactor     .10000E-03    26.704       -.24124E-06** at limit **
   3  Prefactor     .10000E-03    21.143        .72526E-07** at limit **
   4  Prefactor     13.891        42.747       -.60556E-05   -.11609E-03
   5  Prefactor     .10000E-03    13.889       -.51044E-06** at limit **
   6  Prefactor     .10000E-03    1.9559        .42823E-08** at limit **
   7  Prefactor     1.3993        7.1138        .23542E-05   -.14807E-03
   8  Prefactor     71.044        40.570        .11444E-06   -.17105E-04
   9  Prefactor     124.59        82.559        .21767E-06   -.32332E-04
  10  Prefactor     .10000E-03    19.658        .75623E-06** at limit **
  11  Prefactor     .10000E-03    6.3963       -.34443E-07** at limit **
  12  Prefactor     .10000E-03    34.875        .49559E-06** at limit **
  13  Prefactor     94.245        74.740        .20036E-05   -.33624E-05
  14  Prefactor     .10000E-03    23.202       -.74276E-06** at limit **
  15  norm          .10000E-03    12.595        .58206E-06** at limit **
  16  norm          .10000E-03    3.6044        .47458E-08** at limit **
  17  norm          5.6345        6.2786       -.39353E-06   -.45370E-03
  18  norm          .68877        7.6845        .74701E-06   -.59188E-04
  19  Prefactor     .10000E-03    14.402        .33309E-05** at limit **
  20  Prefactor     19.365        41.234        .24259E-06   -.16875E-03
  21  Prefactor     .10000E-03    33.979        .66930E-06** at limit **
  22  norm          .10000E-03    5.7663        .11217E-05** at limit **
  23  Prefactor     17.869        20.413       -.98897E-07   -.10005E-03
  24  norm          .21367        1.5568        .48947E-06   -.66626E-05
  25  norm          .10000E-03    1.6800        .52106E-07** at limit **
  26  Prefactor     .10000E-03    1.9642        .19006E-08** at limit **
  27  Prefactor     .10000E-03    9.8303       -.25518E-08** at limit **
  28  Prefactor     .10000E-03    49.848       -.15366E-06** at limit **
  29  norm          .10000E-03    21.846       -.25716E-06** at limit **
  30  Prefactor     .10003E-03    10.849        .51991E-05** at limit **
  31  Prefactor     2.8489        4.2528        .47091E-06   -.93957E-04
  32  Prefactor     116.77        81.149       -.29702E-05   -.28934E-03
  33  Normalizat    1.1061        .22997       -.55562E-05   -.37162E-03
  34  Prefactor     .56975        .23345        .28503E-05   -.45474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.39927
  Prefactor  = 71.044
  Prefactor  = 124.592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.2453
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.63453
  norm       = 0.688766
  Prefactor  = 0.000100001
  Prefactor  = 19.3648
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.869
  norm       = 0.213667
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 2.84894
  Prefactor  = 116.768
  Normalizat = 1.10611
  Prefactor  = 0.569747
 **********
 **   18 **HESSE 
 **********

 FCN=   3546.795     FROM HESSE     STATUS=OK           720 CALLS     5598 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.891        42.986        .10749E-03   -1.4962    
   5  Prefactor     .10000E-03    13.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9571        .81346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3993        6.7998        .27572E-03   -1.5471    
   8  Prefactor     71.044        39.785        .47625E-04   -1.4020    
   9  Prefactor     124.59        82.623        .18027E-03   -1.3471    
  10  Prefactor     .10000E-03    19.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4370        .14705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     94.245        74.750        .20709E-03   -1.3763    
  14  Prefactor     .10000E-03    23.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6090        .11041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6345        5.9285        .13848E-03   -1.5233    
  18  norm          .68877        34.692        .31076E-02   -1.5542    
  19  Prefactor     .10000E-03    14.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.365        38.616        .91029E-04   -1.4828    
  21  Prefactor     .10000E-03    34.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.5981        .23492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.869        19.989        .94685E-04   -1.4862    
  24  norm          .21367        2.7555        .12814E-02   -1.5616    
  25  norm          .10000E-03    1.6854        .75361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.9845        .81439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.8377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    49.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    21.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10003E-03    27.084        .34295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.8489        4.2447        .14309E-03   -1.5370    
  32  Prefactor     116.77        80.116        .18635E-03   -1.3543    
  33  Normalizat    1.1061        .26590        .20336E-03   -.89556    
  34  Prefactor     .56975        .27346        .29680E-03   -1.0888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87647e-08
Minuit parameter uncertainties:
  1  4.15855e-05
  2  5.23437e-05
  3  3.06917e-05
  4  43.0819
  5  2.61584e-05
  6  1.12331e-06
  7  6.17009
  8  39.8004
  9  82.6993
  10  7.41012e-05
  11  3.07161e-05
  12  7.16994e-05
  13  74.8245
  14  6.36155e-05
  15  1.22326e-05
  16  4.27642e-07
  17  5.92913
  18  9.78177
  19  0.000248896
  20  38.6658
  21  7.99747e-05
  22  2.82048e-05
  23  19.9968
  24  1.53435
  25  2.66946e-06
  26  9.49309e-06
  27  1.02958e-05
  28  0.000107433
  29  1.59648e-06
  30  0.00179157
  31  4.24516
  32  80.1902
  33  0.266218
  34  0.274099
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  2.669e-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:  5.697e-01  2.741e-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.106e+00  2.662e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58596/likelihoodResults_619056001_619315201_4FGL_J2336.6-4115_daily_bin1465.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) = 3546.7972254
delta logL = -0.00271177797504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3546.7945136
delta logL = 2.264368959e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2112       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3546.795     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      232 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5858        .75455E-03** at limit **
   2  alpha         2.0050        3.9573        .16602       -.95871E-08
   3  Normalizat    1.1061        .24861        .20336E-03    .36735E-04
   4  Prefactor     .56975        .26856        .29680E-03    .29207E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00497
  Normalizat = 1.10611
  Prefactor  = 0.569754
 **********
 **   18 **HESSE 
 **********

 FCN=   3546.795     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7270        .15091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0050        2.5483        .66406E-02   -.19933    
   3  Normalizat    1.1061        .24884        .40672E-04   -.89556    
   4  Prefactor     .56975        .26881        .11872E-04   -1.0888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97178e-11
Minuit parameter uncertainties:
  1  1.79486e-05
  2  176.184
  3  0.249104
  4  0.269415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58596': 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) = 3546.79451291
delta logL = 7.1307476901e-07

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  1.795e-05  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.005e+00  1.762e+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:  5.698e-01  2.694e-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.106e+00  2.491e-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/58596/cmap_HighResolution_619056001_619315201_4FGL_J2336.6-4115_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-30 02:13:42.647495', job_id='58596', GAL2='0.57', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632993222.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='7.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1465' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:13:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 58596: <4FGL_J2336.6-4115_daily_bin1465> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1465> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:21 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:00:22 2021
Terminated at Thu Sep 30 02:13:43 2021
Results reported at Thu Sep 30 02:13:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1465 354.164 -41.2579 619056001 619315201 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 :                                   685.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

