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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin901
RA = 354.164, Dec = -41.2579
tmin = 472867201, tmax = 473126401
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='54744', job_status='RUN', time_executed='2021-09-30 01:46:08.691944', time_epoch_executed='1632991568.69' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54744

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54744/ft1_4FGL_J2336.6-4115_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54744/ft2_4FGL_J2336.6-4115_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54744/ft1_4FGL_J2336.6-4115_daily_bin901.fits outfile=/scratch/kocevski/54744/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin901.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=472867201.0 tmax=473126401.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.90
user 3.67
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54744/ft1_filtered_4FGL_J2336.6-4115_daily_bin901.fits" evtable="EVENTS" scfile=/scratch/kocevski/54744/ft2_4FGL_J2336.6-4115_daily_bin901.fits sctable="SC_DATA" outfile=/scratch/kocevski/54744/ltcube_472867201_473126401_4FGL_J2336.6-4115_daily_bin901.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/54744/ft2_4FGL_J2336.6-4115_daily_bin901.fits
.....................!
real 12.06
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54744/ft1_filtered_4FGL_J2336.6-4115_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/54744/ft2_4FGL_J2336.6-4115_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/54744/ltcube_472867201_473126401_4FGL_J2336.6-4115_daily_bin901.fits outfile=/scratch/kocevski/54744/expmap_472867201_473126401_4FGL_J2336.6-4115_daily_bin901.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/54744/ltcube_472867201_473126401_4FGL_J2336.6-4115_daily_bin901.fits
.....................!
real 190.15
user 185.40
sys 4.40

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/54744/ft1_filtered_4FGL_J2336.6-4115_daily_bin901.fits scfile=/scratch/kocevski/54744/ft2_4FGL_J2336.6-4115_daily_bin901.fits outfile=/scratch/kocevski/54744/cmap_472867201_473126401_4FGL_J2336.6-4115_daily_bin901.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54744/ft1_filtered_4FGL_J2336.6-4115_daily_bin901.fits scfile=/scratch/kocevski/54744/ft2_4FGL_J2336.6-4115_daily_bin901.fits outfile=/scratch/kocevski/54744/cmap_HighResolution_472867201_473126401_4FGL_J2336.6-4115_daily_bin901.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/54744/ft1_filtered_4FGL_J2336.6-4115_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/54744/ft2_4FGL_J2336.6-4115_daily_bin901.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54744/Model_4FGL_J2336.6-4115_daily_bin901.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/54744/ft1_filtered_4FGL_J2336.6-4115_daily_bin901.fits.....................!
real 32.60
user 31.36
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.924       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.258       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.316       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.040       1.0000         .10000E-03   10000.    
    15 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    29.478       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    71.947       1.0000         .10000E-03   10000.    
    21 'Prefactor '    96.343       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4995       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .99338       1.0000         .10000E-03   10000.    
    25 'norm      '    4.4947       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.5791       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .60414E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.9312       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .81281       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .94581       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=   3669.355     FROM MIGRAD    STATUS=CONVERGED    929 CALLS     4170 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.922        49.559        .67372E-06   -.86644E-05
   2  Prefactor     .10000E-03    10.690        .32029E-07** at limit **
   3  Prefactor     .10000E-03    21.565       -.15667E-05** at limit **
   4  Prefactor     .10000E-03    14.696       -.26385E-06** at limit **
   5  Prefactor     33.496        35.623        .15395E-05    .55198E-04
   6  Prefactor     14.256        12.817        .38093E-06   -.15975E-04
   7  Prefactor     1.7148        6.3682        .18215E-05    .43070E-04
   8  Prefactor     .10000E-03    27.700        .98957E-07** at limit **
   9  Prefactor     23.167        46.239        .78618E-06   -.22612E-04
  10  Prefactor     42.311        41.420        .76396E-06   -.95502E-04
  11  Prefactor     .10004E-03    9.5181        .27319E-05** at limit **
  12  Prefactor     .10000E-03    19.598        .83086E-07** at limit **
  13  Prefactor     .10000E-03    25.465       -.57259E-06** at limit **
  14  Prefactor     25.025        22.575        .18722E-05    .74482E-04
  15  norm          .10000E-03    8.1959        .20032E-06** at limit **
  16  norm          .10000E-03    2.8291        .71662E-07** at limit **
  17  norm          .10000E-03    3.9585       -.70990E-06** at limit **
  18  norm          29.483        14.723       -.70346E-07   -.63631E-04
  19  Prefactor     .10000E-03    3.0881        .20641E-06** at limit **
  20  Prefactor     72.167        80.636       -.32980E-06    .91643E-04
  21  Prefactor     96.286        80.110       -.19941E-05   -.10351E-03
  22  norm          3.4731        11.752        .52276E-05    .15860E-03
  23  Prefactor     .10000E-03    7.0847        .29980E-06** at limit **
  24  norm          .99309        .97115       -.58479E-08   -.11969E-03
  25  norm          4.4979        4.9875       -.11467E-05   -.19735E-03
  26  Prefactor     4.5705        5.4592        .14631E-05   -.10781E-03
  27  Prefactor     .10000E-03    51.659       -.11585E-05** at limit **
  28  Prefactor     .10000E-03    18.724        .10095E-05** at limit **
  29  norm          .10000E-03    499.13        .25623E-04** at limit **
  30  Prefactor     7.9322        7.6770        .64316E-06   -.28768E-04
  31  Prefactor     .10000E-03    1.2766        .53773E-07** at limit **
  32  Prefactor     .10000E-03    19.463        .13728E-06** at limit **
  33  Normalizat    .81288        .26292       -.91929E-05   -.17618E-03
  34  Prefactor     .94588        .27102        .51244E-05   -.42865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.9216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.4961
  Prefactor  = 14.2558
  Prefactor  = 1.71481
  Prefactor  = 0.0001
  Prefactor  = 23.1667
  Prefactor  = 42.311
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0252
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 29.4828
  Prefactor  = 0.0001
  Prefactor  = 72.1675
  Prefactor  = 96.2862
  norm       = 3.4731
  Prefactor  = 0.0001
  norm       = 0.993088
  norm       = 4.49793
  Prefactor  = 4.57054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 7.93218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.812884
  Prefactor  = 0.945884
 **********
 **   18 **HESSE 
 **********

 FCN=   3669.355     FROM HESSE     STATUS=OK           728 CALLS     4898 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.922        49.566        .65955E-04   -1.4492    
   2  Prefactor     .10000E-03    10.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.496        35.208        .69216E-04   -1.4550    
   6  Prefactor     14.256        12.818        .10607E-03   -1.4953    
   7  Prefactor     1.7148        6.2696        .25417E-03   -1.5446    
   8  Prefactor     .10000E-03    27.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.167        46.192        .83192E-04   -1.4745    
  10  Prefactor     42.311        41.241        .61625E-04   -1.4406    
  11  Prefactor     .10004E-03    28.413        .34537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.025        22.588        .80053E-04   -1.4707    
  15  norm          .10000E-03    8.2066        .16939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8293        .99503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.9859        .11793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          29.483        14.720        .73793E-04   -1.4621    
  19  Prefactor     .10000E-03    3.0948        .10395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     72.167        80.958        .23665E-03   -1.4007    
  21  Prefactor     96.286        80.564        .20475E-03   -1.3742    
  22  norm          3.4731        11.902        .21613E-03   -1.5335    
  23  Prefactor     .10000E-03    7.0957        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .99309        .99092        .56164E-03   -1.5509    
  25  norm          4.4979        4.9822        .13181E-03   -1.5284    
  26  Prefactor     4.5705        5.3810        .14186E-03   -1.5280    
  27  Prefactor     .10000E-03    52.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    508.03        .37859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     7.9322        7.6833        .14237E-03   -1.5145    
  31  Prefactor     .10000E-03    1.2789        .66840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    19.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .81288        .29052        .25683E-03   -.99593    
  34  Prefactor     .94588        .30441        .26543E-03   -.94556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64389e-09
Minuit parameter uncertainties:
  1  49.621
  2  1.06807e-05
  3  0.000104414
  4  7.02932e-06
  5  35.2299
  6  12.82
  7  6.27204
  8  4.4774e-05
  9  46.2633
  10  41.2691
  11  0.00223214
  12  9.48236e-06
  13  3.34242e-05
  14  22.5956
  15  9.82525e-06
  16  8.03623e-07
  17  4.41794e-05
  18  14.7219
  19  3.64031e-06
  20  81.0817
  21  80.6555
  22  11.9103
  23  9.41816e-06
  24  0.990934
  25  4.98268
  26  5.38154
  27  0.000201045
  28  7.32662e-05
  29  0.00221971
  30  7.68428
  31  2.54253e-06
  32  2.03888e-05
  33  0.291074
  34  0.304959
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.498e+00  4.983e+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.459e-01  3.050e-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.129e-01  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/54744/likelihoodResults_472867201_473126401_4FGL_J2336.6-4115_daily_bin901.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) = 3669.3516175
delta logL = 0.003545040267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3669.35087662
delta logL = 0.00428592332173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3168       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3094       1.0000          .0000       5.0000    
     3 'Normalizat'    .81009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94807       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=   3669.351     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3156        175.38        .48472E-02    .76594E-04
   2  alpha         2.3099        3.2166        .41304        .13247E-04
   3  Normalizat    .81011        .10660        .43742E-01   -.25202E-05
   4  Prefactor     .94808        .95758E-01    .45615E-01    .32965E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31565
  alpha      = 2.30989
  Normalizat = 0.810105
  Prefactor  = 0.948075
 **********
 **   18 **HESSE 
 **********

 FCN=   3669.351     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3156        5.1879        .12794E-03   -1.5292    
   2  alpha         2.3099        1.0135        .17207E-01   -.76118E-01
   3  Normalizat    .81011        .26867        .25722E-03   -.99695    
   4  Prefactor     .94808        .29815        .26514E-03   -.94481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25229e-10
Minuit parameter uncertainties:
  1  5.18841
  2  1.04369
  3  0.269108
  4  0.29867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54744': 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) = 3669.35087646
delta logL = 0.00428607906633

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.481e-01  2.987e-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.101e-01  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.31 +/- 1.04
Photon Flux (Free Index): 3.16e-08 +/- 4.00e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.31e-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/54744/cmap_HighResolution_472867201_473126401_4FGL_J2336.6-4115_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-05', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.15e-05', photon_flux_error='3.26e-08', dlogl='4.29e-03', energy_flux='1.19e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-09-30 01:57:14.463534', photon_index_error2='1.04', photon_index2='2.31', ts='1.74', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.31e-05', EG='0.81', time_epoch_completed='1632992234.46', return_code='0', job_id='54744', GAL2='0.95', EG2='0.81', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='4.00e-08', ts2='1.76', photon_index='2.22' WHERE bin_id='901' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 01:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 54744: <4FGL_J2336.6-4115_daily_bin901> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin901> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 01:45:35 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:45:37 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:45:37 2021
Terminated at Thu Sep 30 01:57:15 2021
Results reported at Thu Sep 30 01:57:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin901 354.164 -41.2579 472867201 473126401 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 :                                   661.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

