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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1007
RA = 354.164, Dec = -41.2579
tmin = 500342401, tmax = 500601601
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='55945', job_status='RUN', time_executed='2021-09-30 01:52:03.927405', time_epoch_executed='1632991923.93' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55945/ft1_4FGL_J2336.6-4115_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55945/ft2_4FGL_J2336.6-4115_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55945/ft1_4FGL_J2336.6-4115_daily_bin1007.fits outfile=/scratch/kocevski/55945/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1007.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=500342401.0 tmax=500601601.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.64
user 4.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55945/ft2_4FGL_J2336.6-4115_daily_bin1007.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/55945/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/55945/ft1_filtered_4FGL_J2336.6-4115_daily_bin1007.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.50
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55945/ft1_filtered_4FGL_J2336.6-4115_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/55945/ft2_4FGL_J2336.6-4115_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/55945/ltcube_500342401_500601601_4FGL_J2336.6-4115_daily_bin1007.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/55945/ft2_4FGL_J2336.6-4115_daily_bin1007.fits
.....................!
real 11.87
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55945/ft1_filtered_4FGL_J2336.6-4115_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/55945/ft2_4FGL_J2336.6-4115_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/55945/ltcube_500342401_500601601_4FGL_J2336.6-4115_daily_bin1007.fits outfile=/scratch/kocevski/55945/expmap_500342401_500601601_4FGL_J2336.6-4115_daily_bin1007.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/55945/ltcube_500342401_500601601_4FGL_J2336.6-4115_daily_bin1007.fits
.....................!
real 192.05
user 187.46
sys 4.22

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/55945/ft1_filtered_4FGL_J2336.6-4115_daily_bin1007.fits scfile=/scratch/kocevski/55945/ft2_4FGL_J2336.6-4115_daily_bin1007.fits outfile=/scratch/kocevski/55945/cmap_500342401_500601601_4FGL_J2336.6-4115_daily_bin1007.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55945/ft1_filtered_4FGL_J2336.6-4115_daily_bin1007.fits scfile=/scratch/kocevski/55945/ft2_4FGL_J2336.6-4115_daily_bin1007.fits outfile=/scratch/kocevski/55945/cmap_HighResolution_500342401_500601601_4FGL_J2336.6-4115_daily_bin1007.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55945/ft1_filtered_4FGL_J2336.6-4115_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/55945/ft2_4FGL_J2336.6-4115_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55945/Model_4FGL_J2336.6-4115_daily_bin1007.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/55945/ft1_filtered_4FGL_J2336.6-4115_daily_bin1007.fits......................!
real 27.71
user 26.50
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    113.19       1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.870       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.398       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7285       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.888       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.759       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11377E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0756       1.0000         .10000E-03   10000.    
    24 'norm      '    .36724       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .30775E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.869       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .66735       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.3034       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=   2723.528     FROM MIGRAD    STATUS=CONVERGED    969 CALLS     5717 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     113.37        127.82        .72497E-06    .52654E-04
   2  Prefactor     63.925        43.703        .26259E-06    .57913E-04
   3  Prefactor     .10002E-03    188.71       -.75499E-05** at limit **
   4  Prefactor     .10000E-03    19.900        .18198E-07** at limit **
   5  Prefactor     .10000E-03    44.758        .27053E-06** at limit **
   6  Prefactor     18.404        14.965       -.80151E-07    .18159E-04
   7  Prefactor     5.7290        10.974        .82138E-06    .17053E-03
   8  Prefactor     32.860        47.102       -.45320E-06    .52278E-04
   9  Prefactor     .10000E-03    29.134       -.90506E-07** at limit **
  10  Prefactor     .10000E-03    24.975       -.75898E-07** at limit **
  11  Prefactor     .10000E-03    4.7513       -.35535E-07** at limit **
  12  Prefactor     .10000E-03    28.700       -.46385E-07** at limit **
  13  Prefactor     .10000E-03    58.854       -.81851E-07** at limit **
  14  Prefactor     .10000E-03    33.668       -.31545E-06** at limit **
  15  norm          .10000E-03    13.134       -.53204E-07** at limit **
  16  norm          .10000E-03    4.7067       -.24214E-07** at limit **
  17  norm          .10000E-03    2.8443        .37418E-07** at limit **
  18  norm          .10000E-03    10.498        .21376E-07** at limit **
  19  Prefactor     .10000E-03    5.5942       -.20366E-06** at limit **
  20  Prefactor     43.758        49.933        .78439E-07    .14355E-04
  21  Prefactor     .10000E-03    118.75        .11124E-06** at limit **
  22  norm          .10000E-03    2.7158        .13248E-06** at limit **
  23  Prefactor     2.0907        23.707        .16286E-05    .67616E-04
  24  norm          .36530        1.0971        .34396E-07    .82094E-04
  25  norm          .10000E-03    2.7128        .14530E-06** at limit **
  26  Prefactor     .10000E-03    1.3106       -.17611E-06** at limit **
  27  Prefactor     .10000E-03    44.933       -.21381E-05** at limit **
  28  Prefactor     .19133E-03    174.94       -.12737E-04** at limit **
  29  norm          .10000E-03    17.728       -.51894E-07** at limit **
  30  Prefactor     12.866        13.925        .20609E-06    .13518E-03
  31  Prefactor     .10000E-03    6.7983       -.44213E-05** at limit **
  32  Prefactor     .10000E-03    27.912        .70503E-07** at limit **
  33  Normalizat    .66739        .28659        .66384E-06    .12638E-03
  34  Prefactor     1.3036        .29726       -.92332E-06    .11413E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 113.374
  Prefactor  = 63.925
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4044
  Prefactor  = 5.72903
  Prefactor  = 32.8598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.7579
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.09068
  norm       = 0.3653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000191333
  norm       = 0.0001
  Prefactor  = 12.8658
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 0.667394
  Prefactor  = 1.30359
 **********
 **   18 **HESSE 
 **********

 FCN=   2723.528     FROM HESSE     STATUS=OK           728 CALLS     6445 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     113.37        128.06        .18906E-03   -1.3574    
   2  Prefactor     63.925        43.896        .25106E-03   -1.4107    
   3  Prefactor     .10002E-03    190.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    44.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.404        14.961        .93377E-04   -1.4850    
   7  Prefactor     5.7290        10.972        .16782E-03   -1.5229    
   8  Prefactor     32.860        46.935        .69872E-04   -1.4561    
   9  Prefactor     .10000E-03    29.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7630        .11109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7174        .11056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8445        .85949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.542        .16513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6046        .12027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.758        49.992        .60605E-04   -1.4384    
  21  Prefactor     .10000E-03    118.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.7164        .83900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0907        23.335        .28669E-03   -1.5419    
  24  norm          .36530        .96346        .89716E-03   -1.5587    
  25  norm          .10000E-03    2.7154        .83921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.3125        .58347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    46.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .19133E-03    90.412        .15919       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    17.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     12.866        13.980        .11166E-03   -1.4990    
  31  Prefactor     .10000E-03    6.9385        .13294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    27.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .66739        .35717        .28647E-03   -1.0519    
  34  Prefactor     1.3036        .37150        .23550E-03   -.83200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69078e-09
Minuit parameter uncertainties:
  1  128.371
  2  43.9183
  3  0.00352659
  4  2.97959e-06
  5  4.12229e-05
  6  14.9644
  7  10.9763
  8  46.9876
  9  3.72868e-05
  10  1.46205e-05
  11  1.74797e-06
  12  1.1166e-05
  13  2.96998e-05
  14  6.74454e-05
  15  6.38784e-06
  16  2.32451e-06
  17  1.98554e-06
  18  3.46197e-06
  19  2.43689e-05
  20  50.0398
  21  0.00014916
  22  6.74434e-06
  23  13.9759
  24  0.963499
  25  7.48005e-06
  26  6.17432e-06
  27  0.000439167
  28  0.182018
  29  6.64101e-06
  30  13.9836
  31  0.000357869
  32  4.54882e-05
  33  0.358418
  34  0.372255
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  7.480e-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:  1.304e+00  3.723e-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:  6.674e-01  3.584e-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: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55945/likelihoodResults_500342401_500601601_4FGL_J2336.6-4115_daily_bin1007.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) = 2723.53010862
delta logL = -0.00167518720627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2723.52843344
delta logL = -2.42243913817e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2142       1.0000          .0000       5.0000    
     3 'Normalizat'    .66740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3036       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2723.528     FROM MIGRAD    STATUS=FAILED        83 CALLS      226 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    439.03        .83941E-03** at limit **
   2  alpha         2.1630        2.5149        .50000        .24034E-05
   3  Normalizat    .66739        .10753        .28647E-03   -.52384E-05
   4  Prefactor     1.3036        .12033        .23550E-03   -.42723E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2723.528     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      387 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    439.03        .24471E-03** at limit **
   2  alpha         2.1630        2.5149        .84189E-05    .24034E-05
   3  Normalizat    .66739        .10753        .80302E-06   -.52384E-05
   4  Prefactor     1.3036        .12033        .58194E-06   -.42723E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2723.528     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      422 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7859        .16788E-03** at limit **
   2  alpha         2.1055        2.5708        .20000        .34106E-09
   3  Normalizat    .66739        .32612        .11459E-04    .13691E-04
   4  Prefactor     1.3036        .36526        .94201E-05    .18586E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.10551
  Normalizat = 0.667392
  Prefactor  = 1.30359
 **********
 **   18 **HESSE 
 **********

 FCN=   2723.528     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7309        .33576E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1055        3.7824        .80000E-02   -.15846    
   3  Normalizat    .66739        .32488        .22918E-05   -1.0519    
   4  Prefactor     1.3036        .36388        .18840E-05   -.83200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08925e-12
Minuit parameter uncertainties:
  1  3.18171e-06
  2  242.628
  3  0.32582
  4  0.364592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55945': 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) = 2723.52843333
delta logL = 1.03736965684e-07

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  3.182e-06  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.106e+00  2.426e+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:  1.304e+00  3.646e-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:  6.674e-01  3.258e-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/55945/cmap_HighResolution_500342401_500601601_4FGL_J2336.6-4115_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-05', job_status='DONE', photon_flux_upper_limit='9.15e-08', time_completed='2021-09-30 02:02:43.698381', job_id='55945', GAL2='1.30', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632992563.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1007' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:02:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 55945: <4FGL_J2336.6-4115_daily_bin1007> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1007> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 01:50:23 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:50:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 01:50:25 2021
Terminated at Thu Sep 30 02:02:44 2021
Results reported at Thu Sep 30 02:02:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1007 354.164 -41.2579 500342401 500601601 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 :                                   636.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            741 sec.

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

