/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 53 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7481
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1653
RA = 354.164, Dec = -41.2579
tmin = 667785601, tmax = 668044801
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='889557', job_status='RUN', time_executed='2022-03-04 01:18:01.205435', time_epoch_executed='1646385481.21' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889557/ft1_4FGL_J2336.6-4115_daily_bin1653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889557/ft2_4FGL_J2336.6-4115_daily_bin1653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889557/ft1_4FGL_J2336.6-4115_daily_bin1653.fits outfile=/scratch/kocevski/889557/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1653.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=667785601.0 tmax=668044801.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 4.55
user 4.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889557/ft2_4FGL_J2336.6-4115_daily_bin1653.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/889557/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1653.fits evtable="EVENTS" outfile="/scratch/kocevski/889557/ft1_filtered_4FGL_J2336.6-4115_daily_bin1653.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.49
user 0.32
sys 0.16
Number of photons that survived the gtmktime cut: 513

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889557/ft1_filtered_4FGL_J2336.6-4115_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889557/ft2_4FGL_J2336.6-4115_daily_bin1653.fits sctable="SC_DATA" expcube=/scratch/kocevski/889557/ltcube_667785601_668044801_4FGL_J2336.6-4115_daily_bin1653.fits outfile=/scratch/kocevski/889557/expmap_667785601_668044801_4FGL_J2336.6-4115_daily_bin1653.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/889557/ltcube_667785601_668044801_4FGL_J2336.6-4115_daily_bin1653.fits
.....................!
real 190.98
user 185.67
sys 4.79

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/889557/ft1_filtered_4FGL_J2336.6-4115_daily_bin1653.fits scfile=/scratch/kocevski/889557/ft2_4FGL_J2336.6-4115_daily_bin1653.fits outfile=/scratch/kocevski/889557/cmap_667785601_668044801_4FGL_J2336.6-4115_daily_bin1653.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889557/ft1_filtered_4FGL_J2336.6-4115_daily_bin1653.fits scfile=/scratch/kocevski/889557/ft2_4FGL_J2336.6-4115_daily_bin1653.fits outfile=/scratch/kocevski/889557/cmap_HighResolution_667785601_668044801_4FGL_J2336.6-4115_daily_bin1653.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/889557/ft1_filtered_4FGL_J2336.6-4115_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889557/ft2_4FGL_J2336.6-4115_daily_bin1653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889557/Model_4FGL_J2336.6-4115_daily_bin1653.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/889557/ft1_filtered_4FGL_J2336.6-4115_daily_bin1653.fits.....................!
real 42.07
user 40.75
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4398       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.673       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9342       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4497       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18159E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6363       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0181       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1317       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5727       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.401       1.0000         .10000E-03   10000.    
    22 'norm      '    7.9822       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10289E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8110       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.327       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10482E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.199       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.0622       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2364       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .69973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5548.919     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     4143 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10270E-03    2106.0       -.16771E-03** at limit **
   2  Prefactor     2.4755        4.8527       -.50152E-05    .24973E-02
   3  Prefactor     .10141E-03    22.451       -.83929E-05** at limit **
   4  Prefactor     33.672        3.1180       -.97751E-06   -.75402E-03
   5  Prefactor     .10000E-03    19.987       -.51899E-06** at limit **
   6  Prefactor     .10000E-03    7.5802        .68312E-06** at limit **
   7  Prefactor     1.9270        6.9523       -.65495E-05    .12487E-04
   8  Prefactor     2.1117        161.50        .50155E-04   -.34104E-03
   9  Prefactor     .10003E-03    12.809       -.70873E-05** at limit **
  10  Prefactor     .10000E-03    8.8691       -.21717E-05** at limit **
  11  Prefactor     4.4483        5.6640       -.61851E-05   -.14080E-02
  12  Prefactor     .10014E-03    10.232       -.16367E-04** at limit **
  13  Prefactor     .10013E-03    62.328       -.19087E-06** at limit **
  14  Prefactor     9.6303        1.2486       -.29215E-06    .41925E-03
  15  norm          .10000E-03    3.7355        .29543E-06** at limit **
  16  norm          .10000E-03    3.2831        .10249E-06** at limit **
  17  norm          3.0172        3.5274        .48260E-07   -.61662E-04
  18  norm          1.1393        2.0121       -.83811E-07   -.11120E-03
  19  Prefactor     4.5677        5.6716        .89674E-06   -.19279E-03
  20  Prefactor     .10013E-03    11.293        .15332E-04** at limit **
  21  Prefactor     47.421        8.5387       -.25221E-05    .21398E-02
  22  norm          7.9806        4.3892       -.84684E-07    .29760E-03
  23  Prefactor     .10004E-03    10.097        .91516E-05** at limit **
  24  norm          .10000E-03    .48607        .18729E-07** at limit **
  25  norm          .10000E-03    1.4848        .82180E-07** at limit **
  26  Prefactor     2.8128        3.2983       -.86948E-07   -.12701E-03
  27  Prefactor     15.328        3.5994        .10731E-06    .35335E-02
  28  Prefactor     .10014E-03    14.885        .55103E-05** at limit **
  29  norm          .10133E-03    22.987        .93915E-05** at limit **
  30  Prefactor     13.203        1.2681        .36255E-06    .52472E-03
  31  Prefactor     2.0556        3.9756       -.13547E-06   -.69185E-05
  32  Prefactor     .10009E-03    14.712       -.71065E-05** at limit **
  33  Normalizat    1.2365        .22431       -.50329E-06    .29844E-03
  34  Prefactor     .69971        .24307        .23004E-05    .18205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102702
  Prefactor  = 2.47547
  Prefactor  = 0.00010141
  Prefactor  = 33.6718
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.92696
  Prefactor  = 2.11174
  Prefactor  = 0.000100032
  Prefactor  = 0.000100001
  Prefactor  = 4.44828
  Prefactor  = 0.000100136
  Prefactor  = 0.000100125
  Prefactor  = 9.63027
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.01725
  norm       = 1.13934
  Prefactor  = 4.5677
  Prefactor  = 0.000100129
  Prefactor  = 47.4208
  norm       = 7.98063
  Prefactor  = 0.00010004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.81283
  Prefactor  = 15.3276
  Prefactor  = 0.000100138
  norm       = 0.000101333
  Prefactor  = 13.2028
  Prefactor  = 2.05559
  Prefactor  = 0.000100089
  Normalizat = 1.23649
  Prefactor  = 0.699708
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.919     FROM HESSE     STATUS=OK           812 CALLS     4955 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10270E-03    66.855        .14986       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4755        30.804        .65485E-02   -1.5393    
   3  Prefactor     .10141E-03    39.938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.672        36.111        .17264E-02   -1.4547    
   5  Prefactor     .10000E-03    19.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9270        9.3977        .74649E-02   -1.5430    
   8  Prefactor     2.1117        249.62        .69706E-02   -1.5417    
   9  Prefactor     .10003E-03    13.010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4483        5.7791        .47723E-02   -1.5286    
  12  Prefactor     .10014E-03    10.998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10013E-03    63.310        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.6303        11.633        .32273E-02   -1.5087    
  15  norm          .10000E-03    3.7341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2662        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0172        3.5301        .58402E-02   -1.5361    
  18  norm          1.1393        13.466        .10973E-01   -1.5494    
  19  Prefactor     4.5677        5.9077        .47061E-02   -1.5280    
  20  Prefactor     .10013E-03    12.060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     47.421        48.531        .14560E-02   -1.4330    
  22  norm          7.9806        4.4086        .35479E-02   -1.5143    
  23  Prefactor     .10004E-03    10.252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .39091        .22315E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.4713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.8128        3.6154        .60654E-02   -1.5373    
  27  Prefactor     15.328        22.404        .25576E-02   -1.4925    
  28  Prefactor     .10014E-03    27.801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10133E-03    40.972        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     13.203        7.4454        .27563E-02   -1.4981    
  31  Prefactor     2.0556        4.1949        .71937E-02   -1.5421    
  32  Prefactor     .10009E-03    28.113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2365        .19498        .34054E-01   -.85483    
  34  Prefactor     .69971        .20702        .68252E-01   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38229e-06
Minuit parameter uncertainties:
  1  0.0269099
  2  17.4755
  3  0.0150164
  4  36.1346
  5  0.000366686
  6  3.3039e-05
  7  8.51287
  8  46.1158
  9  0.00129306
  10  0.000157955
  11  5.77985
  12  0.00244938
  13  0.00563714
  14  11.6355
  15  4.83817e-06
  16  1.39723e-06
  17  3.53033
  18  7.83561
  19  5.9084
  20  0.00249691
  21  48.5714
  22  4.4088
  23  0.00127679
  24  1.0586e-08
  25  1.19434e-06
  26  3.61572
  27  22.4162
  28  0.00392395
  29  0.0147932
  30  7.44587
  31  4.19555
  32  0.00316987
  33  0.19509
  34  0.207248
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  6.997e-01  2.072e-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.236e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889557/likelihoodResults_667785601_668044801_4FGL_J2336.6-4115_daily_bin1653.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5548.92213402
delta logL = -0.00314940180579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5548.91898466
delta logL = -4.76375134895e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5548.919     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      231 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    84.255        .88584E-02** at limit **
   2  alpha         1.9250        2.6714        .16607        .12665E-07
   3  Normalizat    1.2365        .32979E-01    .20984E-03   -.78339E-03
   4  Prefactor     .69970        .36872E-01    .30201E-03   -.68807E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.92502
  Normalizat = 1.23649
  Prefactor  = 0.699704
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.919     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5877        .91234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9250        3.4278        .66427E-02   -.23207    
   3  Normalizat    1.2365        .21555        .41968E-04   -.85483    
   4  Prefactor     .69970        .24078        .60402E-04   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64167e-10
Minuit parameter uncertainties:
  1  1.09859e-06
  2  140.264
  3  0.215701
  4  0.241141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889557': 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) = 5548.91898248
delta logL = 2.13536350202e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  6.997e-01  2.411e-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.236e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.164 -41.258

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/889557/cmap_HighResolution_667785601_668044801_4FGL_J2336.6-4115_daily_bin1653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-05', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2022-03-04 01:32:23.322643', job_id='889557', GAL2='0.70', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1646386343.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1653' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar  4 01:32:23 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 889557: <4FGL_J2336.6-4115_daily_bin1653> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1653> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar  4 01:15:56 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar  4 01:16:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar  4 01:16:58 2022
Terminated at Fri Mar  4 01:32:24 2022
Results reported at Fri Mar  4 01:32:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1653 354.164 -41.2579 667785601 668044801 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 :                                   863.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            988 sec.

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

