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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1641
RA = 354.164, Dec = -41.2579
tmin = 664675201, tmax = 664934401
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='374100', job_status='RUN', time_executed='2022-01-27 00:42:22.378759', time_epoch_executed='1643272942.38' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374100

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374100/ft1_4FGL_J2336.6-4115_daily_bin1641.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374100/ft2_4FGL_J2336.6-4115_daily_bin1641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374100/ft1_4FGL_J2336.6-4115_daily_bin1641.fits outfile=/scratch/kocevski/374100/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1641.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=664675201.0 tmax=664934401.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.67
user 3.46
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374100/ft1_filtered_4FGL_J2336.6-4115_daily_bin1641.fits" evtable="EVENTS" scfile=/scratch/kocevski/374100/ft2_4FGL_J2336.6-4115_daily_bin1641.fits sctable="SC_DATA" outfile=/scratch/kocevski/374100/ltcube_664675201_664934401_4FGL_J2336.6-4115_daily_bin1641.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/374100/ft2_4FGL_J2336.6-4115_daily_bin1641.fits
.....................!
real 11.77
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374100/ft1_filtered_4FGL_J2336.6-4115_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374100/ft2_4FGL_J2336.6-4115_daily_bin1641.fits sctable="SC_DATA" expcube=/scratch/kocevski/374100/ltcube_664675201_664934401_4FGL_J2336.6-4115_daily_bin1641.fits outfile=/scratch/kocevski/374100/expmap_664675201_664934401_4FGL_J2336.6-4115_daily_bin1641.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/374100/ltcube_664675201_664934401_4FGL_J2336.6-4115_daily_bin1641.fits
.....................!
real 192.36
user 186.24
sys 5.73

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/374100/ft1_filtered_4FGL_J2336.6-4115_daily_bin1641.fits scfile=/scratch/kocevski/374100/ft2_4FGL_J2336.6-4115_daily_bin1641.fits outfile=/scratch/kocevski/374100/cmap_664675201_664934401_4FGL_J2336.6-4115_daily_bin1641.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/374100/ft1_filtered_4FGL_J2336.6-4115_daily_bin1641.fits scfile=/scratch/kocevski/374100/ft2_4FGL_J2336.6-4115_daily_bin1641.fits outfile=/scratch/kocevski/374100/cmap_HighResolution_664675201_664934401_4FGL_J2336.6-4115_daily_bin1641.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/374100/ft1_filtered_4FGL_J2336.6-4115_daily_bin1641.fits evtable="EVENTS" scfile=/scratch/kocevski/374100/ft2_4FGL_J2336.6-4115_daily_bin1641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374100/Model_4FGL_J2336.6-4115_daily_bin1641.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/374100/ft1_filtered_4FGL_J2336.6-4115_daily_bin1641.fits.....................!
real 35.61
user 34.35
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    119.90       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.754       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9035       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.973       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.282       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.116       1.0000         .10000E-03   10000.    
    21 'Prefactor '    109.78       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7617       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8465       1.0000         .10000E-03   10000.    
    25 'norm      '    4.6285       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    61.767       1.0000         .10000E-03   10000.    
    29 'norm      '    24.409       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .21418E-01   1.0000         .10000E-03   10000.    
    32 'Prefactor '    40.824       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0351       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .88252       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=   4241.838     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     4921 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     119.94        87.685        .15417E-05    .48762E-04
   2  Prefactor     .10000E-03    13.920       -.43865E-06** at limit **
   3  Prefactor     11.746        46.862        .14821E-05    .19471E-06
   4  Prefactor     .10000E-03    248.75       -.79040E-06** at limit **
   5  Prefactor     .10000E-03    38.006       -.63678E-06** at limit **
   6  Prefactor     10.461        10.683        .16382E-05    .30324E-03
   7  Prefactor     .10000E-03    7.0489       -.14081E-05** at limit **
   8  Prefactor     2.9283        54.470        .25475E-05    .27188E-04
   9  Prefactor     .10000E-03    23.289       -.15333E-06** at limit **
  10  Prefactor     41.051        40.593        .24960E-06    .17651E-04
  11  Prefactor     .10000E-03    2.7176       -.69907E-07** at limit **
  12  Prefactor     28.138        39.153       -.24916E-06    .10802E-04
  13  Prefactor     .10000E-03    50.358       -.42671E-06** at limit **
  14  Prefactor     .10000E-03    12.093       -.39626E-06** at limit **
  15  norm          .10000E-03    5.6979       -.81274E-07** at limit **
  16  norm          .10000E-03    3.6671       -.12292E-07** at limit **
  17  norm          .10000E-03    2.2445       -.68459E-07** at limit **
  18  norm          15.979        14.728        .31684E-07    .34545E-04
  19  Prefactor     21.285        10.253        .18713E-06    .40123E-04
  20  Prefactor     29.146        52.084        .78465E-06    .17182E-04
  21  Prefactor     109.91        88.650        .22663E-05    .11082E-03
  22  norm          3.7625        4.3806        .42632E-06    .22444E-03
  23  Prefactor     .10000E-03    9.6618       -.19964E-06** at limit **
  24  norm          1.8466        1.5185        .88234E-07    .16780E-03
  25  norm          4.6287        5.2623        .19800E-06    .78745E-04
  26  Prefactor     .10000E-03    1.5229       -.22483E-06** at limit **
  27  Prefactor     .10000E-03    8.6313       -.19357E-06** at limit **
  28  Prefactor     61.770        54.903        .10808E-06    .14300E-04
  29  norm          24.415        38.069       -.40261E-06    .11195E-04
  30  Prefactor     .10000E-03    19.536        .21679E-05** at limit **
  31  Prefactor     .82136E-01    3.2023        .67079E-06   -.37800E-03
  32  Prefactor     40.836        53.653        .16304E-05    .43876E-04
  33  Normalizat    1.0343        .27897       -.74348E-05    .23340E-03
  34  Prefactor     .88278        .27584        .85721E-05    .60723E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 119.942
  Prefactor  = 0.0001
  Prefactor  = 11.7458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4613
  Prefactor  = 0.0001
  Prefactor  = 2.92835
  Prefactor  = 0.0001
  Prefactor  = 41.0514
  Prefactor  = 0.0001
  Prefactor  = 28.1378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.979
  Prefactor  = 21.2851
  Prefactor  = 29.1461
  Prefactor  = 109.909
  norm       = 3.76254
  Prefactor  = 0.0001
  norm       = 1.84664
  norm       = 4.6287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.7699
  norm       = 24.4154
  Prefactor  = 0.000100001
  Prefactor  = 0.0821364
  Prefactor  = 40.8359
  Normalizat = 1.0343
  Prefactor  = 0.882778
 **********
 **   18 **HESSE 
 **********

 FCN=   4241.838     FROM HESSE     STATUS=OK           732 CALLS     5653 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     119.94        87.781        .18376E-03   -1.3513    
   2  Prefactor     .10000E-03    13.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.746        46.789        .11685E-03   -1.5022    
   4  Prefactor     .10000E-03    258.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.461        10.809        .61943E-03   -1.5061    
   7  Prefactor     .10000E-03    7.2946        .33880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9283        54.531        .23846E-03   -1.5366    
   9  Prefactor     .10000E-03    23.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.051        40.669        .62588E-04   -1.4426    
  11  Prefactor     .10000E-03    2.7211        .10486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.138        39.165        .75531E-04   -1.4647    
  13  Prefactor     .10000E-03    50.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.7027        .15185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6710        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2463        .95259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.979        14.733        .10021E-03   -1.4908    
  19  Prefactor     21.285        10.229        .86824E-04   -1.4785    
  20  Prefactor     29.146        52.049        .74249E-04   -1.4628    
  21  Prefactor     109.91        89.234        .19194E-03   -1.3607    
  22  norm          3.7625        4.3753        .65038E-03   -1.5320    
  23  Prefactor     .10000E-03    9.6813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8466        1.5038        .67633E-04   -1.5436    
  25  norm          4.6287        5.2427        .14680E-03   -1.5278    
  26  Prefactor     .10000E-03    1.5318        .78497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.6400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     61.770        54.902        .51056E-04   -1.4134    
  29  norm          24.415        38.071        .81078E-04   -1.4719    
  30  Prefactor     .10000E-03    20.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .82136E-01    70.400        .21295E-02   -1.5651    
  32  Prefactor     40.836        53.519        .62737E-04   -1.4429    
  33  Normalizat    1.0343        .29166        .24486E-03   -.91890    
  34  Prefactor     .88278        .28326        .28628E-03   -.96746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38846e-09
Minuit parameter uncertainties:
  1  87.8768
  2  5.85769e-05
  3  46.9357
  4  0.000642476
  5  6.83318e-06
  6  10.8115
  7  9.16092e-05
  8  25.2996
  9  8.51407e-05
  10  40.6962
  11  2.4813e-06
  12  39.2003
  13  0.000216749
  14  2.09065e-05
  15  6.0829e-06
  16  2.9938e-06
  17  5.55595e-06
  18  14.7361
  19  10.2298
  20  52.1304
  21  89.3435
  22  4.37567
  23  1.83297e-05
  24  1.50382
  25  5.24326
  26  5.88363e-06
  27  1.21812e-05
  28  54.9473
  29  38.1092
  30  0.000232074
  31  4.81208
  32  53.5817
  33  0.29211
  34  0.283736
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  4.629e+00  5.243e+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:  8.828e-01  2.837e-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.034e+00  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.03e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/374100/likelihoodResults_664675201_664934401_4FGL_J2336.6-4115_daily_bin1641.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) = 4241.2092468
delta logL = 0.628595122227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4241.20685747
delta logL = 0.630984453243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9377       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4039       1.0000          .0000       5.0000    
     3 'Normalizat'    .94690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94014       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=   4241.207     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      256 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9377        40.520        .59245E-02    .16410E-02
   2  alpha         3.4040        4.2004        .28521        .40934E-04
   3  Normalizat    .94678        .78594E-01    .45498E-01    .90306E-05
   4  Prefactor     .94026        .78541E-01    .45515E-01    .68718E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93773
  alpha      = 3.40397
  Normalizat = 0.946783
  Prefactor  = 0.940264
 **********
 **   18 **HESSE 
 **********

 FCN=   4241.207     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9377        5.3650        .72780E-04   -1.5365    
   2  alpha         3.4040        1.2304        .11336E-01    .36997    
   3  Normalizat    .94678        .26720        .25405E-03   -.94835    
   4  Prefactor     .94026        .28393        .27787E-03   -.94748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63238e-09
Minuit parameter uncertainties:
  1  5.36584
  2  1.29619
  3  0.267579
  4  0.284376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374100': 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) = 4241.20685736
delta logL = 0.630984565703

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  2.938e+00  5.366e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.404e+00  1.296e+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.403e-01  2.844e-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.468e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 3.40 +/- 1.30
Photon Flux (Free Index): 1.07e-07 +/- 8.64e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.37e-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/374100/cmap_HighResolution_664675201_664934401_4FGL_J2336.6-4115_daily_bin1641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', photon_flux='3.03e-08', energy_flux2='1.95e-05', photon_flux_error='3.43e-08', dlogl='6.31e-01', energy_flux='1.23e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2022-01-27 00:55:02.340613', photon_index_error2='1.30', photon_index2='3.40', ts='1.53', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.37e-05', EG='1.03', time_epoch_completed='1643273702.34', return_code='0', job_id='374100', GAL2='0.94', EG2='0.95', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='8.64e-08', ts2='2.88', photon_index='2.22' WHERE bin_id='1641' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 27 00:55:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 374100: <4FGL_J2336.6-4115_daily_bin1641> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1641> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan 27 00:40:48 2022
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 27 00:40:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 27 00:40:49 2022
Terminated at Thu Jan 27 00:55:03 2022
Results reported at Thu Jan 27 00:55:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1641 354.164 -41.2579 664675201 664934401 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 :                                   761.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

