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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1702
RA = 354.164, Dec = -41.2579
tmin = 680486401, tmax = 680745601
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='259097', job_status='RUN', time_executed='2022-07-29 01:38:32.962919', time_epoch_executed='1659083912.96' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259097/ft1_4FGL_J2336.6-4115_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259097/ft2_4FGL_J2336.6-4115_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259097/ft1_4FGL_J2336.6-4115_daily_bin1702.fits outfile=/scratch/kocevski/259097/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1702.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=680486401.0 tmax=680745601.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 2.98
user 2.75
sys 0.21

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

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

Number of photons that the gtmktime cut: 237

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/259097/ft2_4FGL_J2336.6-4115_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/259097/ltcube_680486401_680745601_4FGL_J2336.6-4115_daily_bin1702.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/259097/ft2_4FGL_J2336.6-4115_daily_bin1702.fits
.....................!
real 14.70
user 14.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/259097/ft2_4FGL_J2336.6-4115_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/259097/ltcube_680486401_680745601_4FGL_J2336.6-4115_daily_bin1702.fits outfile=/scratch/kocevski/259097/expmap_680486401_680745601_4FGL_J2336.6-4115_daily_bin1702.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/259097/ltcube_680486401_680745601_4FGL_J2336.6-4115_daily_bin1702.fits
.....................!
real 191.83
user 186.01
sys 5.25

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/259097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1702.fits scfile=/scratch/kocevski/259097/ft2_4FGL_J2336.6-4115_daily_bin1702.fits outfile=/scratch/kocevski/259097/cmap_680486401_680745601_4FGL_J2336.6-4115_daily_bin1702.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1702.fits scfile=/scratch/kocevski/259097/ft2_4FGL_J2336.6-4115_daily_bin1702.fits outfile=/scratch/kocevski/259097/cmap_HighResolution_680486401_680745601_4FGL_J2336.6-4115_daily_bin1702.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/259097/ft2_4FGL_J2336.6-4115_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259097/Model_4FGL_J2336.6-4115_daily_bin1702.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/259097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1702.fits......................!
real 27.72
user 26.37
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6765       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44509E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    77.812       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    131.61       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .63967       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.145       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5114       1.0000         .10000E-03   10000.    
    25 'norm      '    9.9857       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.273       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .35804E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .86785       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .90467       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=   2726.854     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4787 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.480        66.102        .27414E-06   -.35251E-04
   2  Prefactor     .10000E-03    18.100       -.57645E-07** at limit **
   3  Prefactor     .10000E-03    60.779       -.41067E-06** at limit **
   4  Prefactor     .10000E-03    43.889       -.13932E-06** at limit **
   5  Prefactor     45.673        44.019       -.26830E-06   -.22321E-04
   6  Prefactor     .10000E-03    10.486       -.94882E-07** at limit **
   7  Prefactor     2.6765        7.0598        .62379E-06    .86016E-05
   8  Prefactor     .10000E-03    11.122       -.72412E-07** at limit **
   9  Prefactor     .10000E-03    176.90       -.19776E-07** at limit **
  10  Prefactor     77.779        108.46       -.23221E-06   -.19556E-04
  11  Prefactor     .10000E-03    10.411       -.41730E-07** at limit **
  12  Prefactor     .10000E-03    68.440        .39239E-07** at limit **
  13  Prefactor     131.51        125.74       -.42469E-06   -.48017E-04
  14  Prefactor     .10000E-03    11.941       -.29841E-07** at limit **
  15  norm          .45638        30.933        .43415E-05   -.34239E-03
  16  norm          .10000E-03    4.5711       -.44026E-08** at limit **
  17  norm          .10000E-03    3.5527        .92320E-06** at limit **
  18  norm          .10000E-03    4.5758        .72764E-07** at limit **
  19  Prefactor     .10000E-03    5.5939        .98335E-07** at limit **
  20  Prefactor     12.283        108.93       -.71889E-05   -.75568E-04
  21  Prefactor     .10000E-03    26.339       -.31656E-08** at limit **
  22  norm          .10000E-03    6.4530        .63270E-05** at limit **
  23  Prefactor     .10000E-03    14.686        .29134E-06** at limit **
  24  norm          1.5115        1.5201        .21292E-07   -.12295E-03
  25  norm          9.9780        9.0756        .24987E-06   -.48538E-03
  26  Prefactor     .10000E-03    2.8039       -.10760E-06** at limit **
  27  Prefactor     37.278        31.963        .18192E-06   -.43360E-04
  28  Prefactor     .10000E-03    56.006       -.28048E-06** at limit **
  29  norm          .10000E-03    25.980       -.29365E-07** at limit **
  30  Prefactor     .10000E-03    4.8001       -.15594E-06** at limit **
  31  Prefactor     .10000E-03    4.1960        .37231E-06** at limit **
  32  Prefactor     .10000E-03    22.914       -.18617E-06** at limit **
  33  Normalizat    .86749        .25042       -.32973E-05   -.15903E-03
  34  Prefactor     .90522        .27011        .34486E-05   -.23994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.48
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.673
  Prefactor  = 0.0001
  Prefactor  = 2.67654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.7787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.513
  Prefactor  = 0.0001
  norm       = 0.456382
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2826
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.51151
  norm       = 9.97801
  Prefactor  = 0.0001
  Prefactor  = 37.278
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.867492
  Prefactor  = 0.905219
 **********
 **   18 **HESSE 
 **********

 FCN=   2726.854     FROM HESSE     STATUS=OK           716 CALLS     5503 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.480        66.226        .62219E-04   -1.4419    
   2  Prefactor     .10000E-03    18.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    61.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.673        43.339        .59330E-04   -1.4355    
   6  Prefactor     .10000E-03    10.790        .33010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6765        6.9112        .16886E-03   -1.5381    
   8  Prefactor     .10000E-03    11.133        .17007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    176.90        .21214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     77.779        108.43        .22762E-03   -1.3942    
  11  Prefactor     .10000E-03    10.423        .16457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     131.51        125.55        .17550E-03   -1.3409    
  14  Prefactor     .10000E-03    11.947        .17625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .45638        318.74        .51956E-02   -1.5573    
  16  norm          .10000E-03    4.5732        .10904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5550        .96143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5805        .10910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6065        .12058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.283        110.53        .11495E-03   -1.5007    
  21  Prefactor     .10000E-03    26.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.6213        .13018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5115        1.5038        .61985E-04   -1.5462    
  25  norm          9.9780        9.0197        .12290E-03   -1.5076    
  26  Prefactor     .10000E-03    2.8170        .85129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     37.278        31.769        .65647E-04   -1.4486    
  28  Prefactor     .10000E-03    56.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    26.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.8411        .11167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    22.415        .20007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    22.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .86749        .28715        .23064E-03   -.97612    
  34  Prefactor     .90522        .31349        .25453E-03   -.95959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39947e-08
Minuit parameter uncertainties:
  1  66.3439
  2  1.06982e-05
  3  8.43854e-05
  4  5.88081e-05
  5  43.3685
  6  7.3855e-06
  7  6.91329
  8  5.5614e-06
  9  0.000225782
  10  108.708
  11  8.7877e-06
  12  1.56357e-05
  13  125.802
  14  1.54521e-05
  15  24.2498
  16  8.06002e-07
  17  1.47262e-05
  18  1.70558e-06
  19  3.48643e-06
  20  73.874
  21  2.00714e-05
  22  0.000143306
  23  1.19051e-06
  24  1.50388
  25  9.02089
  26  1.08667e-06
  27  31.7835
  28  6.9181e-05
  29  6.87999e-06
  30  1.79928e-06
  31  0.000378182
  32  3.61935e-05
  33  0.287656
  34  0.314117
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  9.978e+00  9.021e+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.052e-01  3.141e-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.675e-01  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 6.53e-08 +/- 5.90e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 2.39e-05

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

Saving results to:
/scratch/kocevski/259097/likelihoodResults_680486401_680745601_4FGL_J2336.6-4115_daily_bin1702.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) = 2726.52015776
delta logL = 0.33336631356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2726.51247245
delta logL = 0.34105162063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3763       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7838       1.0000          .0000       5.0000    
     3 'Normalizat'    .82771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93175       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=   2726.512     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      224 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3847        135.50        .36919E-02    .25678E-03
   2  alpha         2.7836        3.6266        .22611        .66468E-04
   3  Normalizat    .82789        .12755        .43971E-01   -.29175E-03
   4  Prefactor     .93123        .12668        .45408E-01   -.45751E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.38468
  alpha      = 2.78356
  Normalizat = 0.827889
  Prefactor  = 0.931227
 **********
 **   18 **HESSE 
 **********

 FCN=   2726.512     FROM HESSE     STATUS=OK            29 CALLS      253 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3847        7.5285        .92800E-04   -1.5164    
   2  alpha         2.7836        .73714        .92897E-02    .11367    
   3  Normalizat    .82789        .28116        .23536E-03   -.99042    
   4  Prefactor     .93123        .31321        .25117E-03   -.95058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3823e-10
Minuit parameter uncertainties:
  1  7.52944
  2  0.748416
  3  0.281653
  4  0.313817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259097': 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) = 2726.5124692
delta logL = 0.341054871598

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.312e-01  3.138e-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.279e-01  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 2.78 +/- 0.75
Photon Flux (Free Index): 1.03e-07 +/- 7.96e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.77e-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/259097/cmap_HighResolution_680486401_680745601_4FGL_J2336.6-4115_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-05', comment='SUCCESS', photon_flux='6.53e-08', energy_flux2='2.50e-05', photon_flux_error='5.90e-08', dlogl='3.41e-01', energy_flux='2.64e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2022-07-29 01:48:36.632248', photon_index_error2='0.75', photon_index2='2.78', ts='2.74', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.77e-05', EG='0.87', time_epoch_completed='1659084516.63', return_code='0', job_id='259097', GAL2='0.93', EG2='0.83', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='7.96e-08', ts2='3.42', photon_index='2.22' WHERE bin_id='1702' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:48:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 259097: <4FGL_J2336.6-4115_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 01:35:29 2022
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:37:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:37:26 2022
Terminated at Fri Jul 29 01:48:37 2022
Results reported at Fri Jul 29 01:48:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1702 354.164 -41.2579 680486401 680745601 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 :                                   605.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            788 sec.

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

