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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1580
RA = 354.164, Dec = -41.2579
tmin = 648864001, tmax = 649123201
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='58790', job_status='RUN', time_executed='2021-09-30 02:02:58.084740', time_epoch_executed='1632992578.08' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58790/ft1_4FGL_J2336.6-4115_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58790/ft2_4FGL_J2336.6-4115_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58790/ft1_4FGL_J2336.6-4115_daily_bin1580.fits outfile=/scratch/kocevski/58790/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1580.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=648864001.0 tmax=649123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.00
user 2.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58790/ft1_filtered_4FGL_J2336.6-4115_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/58790/ft2_4FGL_J2336.6-4115_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/58790/ltcube_648864001_649123201_4FGL_J2336.6-4115_daily_bin1580.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/58790/ft2_4FGL_J2336.6-4115_daily_bin1580.fits
.....................!
real 12.22
user 11.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58790/ft1_filtered_4FGL_J2336.6-4115_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/58790/ft2_4FGL_J2336.6-4115_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/58790/ltcube_648864001_649123201_4FGL_J2336.6-4115_daily_bin1580.fits outfile=/scratch/kocevski/58790/expmap_648864001_649123201_4FGL_J2336.6-4115_daily_bin1580.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/58790/ltcube_648864001_649123201_4FGL_J2336.6-4115_daily_bin1580.fits
.....................!
real 190.44
user 185.50
sys 4.60

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/58790/ft1_filtered_4FGL_J2336.6-4115_daily_bin1580.fits scfile=/scratch/kocevski/58790/ft2_4FGL_J2336.6-4115_daily_bin1580.fits outfile=/scratch/kocevski/58790/cmap_648864001_649123201_4FGL_J2336.6-4115_daily_bin1580.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58790/ft1_filtered_4FGL_J2336.6-4115_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/58790/ft2_4FGL_J2336.6-4115_daily_bin1580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58790/Model_4FGL_J2336.6-4115_daily_bin1580.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/58790/ft1_filtered_4FGL_J2336.6-4115_daily_bin1580.fits.....................!
real 34.59
user 33.33
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0668       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0627       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .88911E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17640E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13150E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.154       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64840E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    25.007       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4095       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3875       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11197E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.378       1.0000         .10000E-03   10000.    
    28 'Prefactor '    48.884       1.0000         .10000E-03   10000.    
    29 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .26168E-01   1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.4442       1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.3830       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2329       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .69623       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=   3963.098     FROM MIGRAD    STATUS=CONVERGED    966 CALLS     4911 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.052        .46051E-06** at limit **
   2  Prefactor     .10000E-03    18.445       -.38478E-06** at limit **
   3  Prefactor     8.0670        44.816       -.18857E-06    .33271E-05
   4  Prefactor     .10000E-03    14.524       -.23863E-06** at limit **
   5  Prefactor     .10000E-03    13.748       -.89874E-06** at limit **
   6  Prefactor     .10000E-03    5.3662        .78525E-07** at limit **
   7  Prefactor     7.0531        6.1275        .37702E-06   -.77686E-03
   8  Prefactor     .10163E-03    32.220        .14642E-05** at limit **
   9  Prefactor     .10000E-03    93.915       -.39046E-05** at limit **
  10  Prefactor     .10000E-03    179.99        .15383E-04** at limit **
  11  Prefactor     .10000E-03    3.7555        .15642E-07** at limit **
  12  Prefactor     .10000E-03    31.701       -.19202E-05** at limit **
  13  Prefactor     56.032        102.71       -.12719E-04   -.50530E-04
  14  Prefactor     .10558E-03    17.428       -.24229E-05** at limit **
  15  norm          25.012        19.504        .84429E-08    .23823E-04
  16  norm          .10000E-03    3.0983        .25506E-07** at limit **
  17  norm          .10000E-03    6.7211       -.21774E-05** at limit **
  18  norm          .10000E-03    14.652       -.30012E-06** at limit **
  19  Prefactor     .10000E-03    4.8451        .12297E-06** at limit **
  20  Prefactor     5.5062        151.74       -.27492E-04   -.13020E-04
  21  Prefactor     .10000E-03    34.776        .23400E-05** at limit **
  22  norm          1.3827        6.0358        .75096E-05    .26878E-04
  23  Prefactor     .10000E-03    9.7448        .10008E-06** at limit **
  24  norm          .10000E-03    .45750        .34294E-07** at limit **
  25  norm          .10000E-03    4.3694        .68318E-06** at limit **
  26  Prefactor     .10000E-03    2.9349       -.54887E-07** at limit **
  27  Prefactor     14.380        19.989       -.28519E-06    .50453E-04
  28  Prefactor     48.861        45.133       -.69536E-06   -.55484E-05
  29  norm          .10000E-03    16.644        .10527E-05** at limit **
  30  Prefactor     .33128E-01    3.7678       -.27954E-06    .13487E-03
  31  Prefactor     8.4414        6.1649        .83122E-07   -.28968E-04
  32  Prefactor     3.3793        74.363       -.21528E-06    .19077E-05
  33  Normalizat    1.2328        .22042       -.18476E-06   -.44199E-04
  34  Prefactor     .69642        .22973        .15805E-05   -.64311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.05314
  Prefactor  = 0.000101631
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.0324
  Prefactor  = 0.000105585
  norm       = 25.0121
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5062
  Prefactor  = 0.0001
  norm       = 1.38265
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3801
  Prefactor  = 48.8608
  norm       = 0.0001
  Prefactor  = 0.0331285
  Prefactor  = 8.44139
  Prefactor  = 3.37934
  Normalizat = 1.23279
  Prefactor  = 0.696424
 **********
 **   18 **HESSE 
 **********

 FCN=   3963.098     FROM HESSE     STATUS=OK           746 CALLS     5657 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0670        44.781        .14116E-03   -1.5140    
   4  Prefactor     .10000E-03    14.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4220        .14238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0531        5.6643        .12581E-03   -1.5177    
   8  Prefactor     .10163E-03    208.95        .61660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    94.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    183.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7573        .11915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.032        103.33        .26766E-03   -1.4209    
  14  Prefactor     .10558E-03    22.593        .76660E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.012        19.498        .80106E-04   -1.4707    
  16  norm          .10000E-03    3.1003        .10820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.9779        .16056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8928        .13527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5062        152.45        .17278E-03   -1.5239    
  21  Prefactor     .10000E-03    34.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3827        6.1403        .22968E-03   -1.5473    
  23  Prefactor     .10000E-03    9.7823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .46863        .83003E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.5096        .25565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.3048        .20016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.380        19.300        .10563E-03   -1.4949    
  28  Prefactor     48.861        45.114        .28677E-03   -1.4309    
  29  norm          .10000E-03    16.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .33128E-01    9.5600        .38852E-01   -1.5672    
  31  Prefactor     8.4414        6.1838        .12355E-03   -1.5127    
  32  Prefactor     3.3793        74.646        .21999E-03   -1.5340    
  33  Normalizat    1.2328        .26122        .20700E-03   -.85596    
  34  Prefactor     .69642        .26864        .29490E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4177e-09
Minuit parameter uncertainties:
  1  6.12599e-06
  2  3.04369e-05
  3  38.0566
  4  8.59082e-06
  5  2.56206e-05
  6  6.73721e-06
  7  5.66476
  8  0.0370499
  9  0.00022627
  10  0.000716961
  11  1.94846e-06
  12  6.47568e-05
  13  103.665
  14  0.022474
  15  19.5031
  16  3.24412e-06
  17  0.000162201
  18  2.59691e-06
  19  4.07876e-07
  20  58.1101
  21  7.68657e-05
  22  5.82829
  23  6.20514e-06
  24  6.72279e-07
  25  7.28228e-05
  26  2.35924e-05
  27  19.3086
  28  45.146
  29  1.94972e-05
  30  1.12402
  31  6.18424
  32  31.8096
  33  0.261503
  34  0.269141
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  7.282e-05  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.964e-01  2.691e-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.233e+00  2.615e-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: 6.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58790/likelihoodResults_648864001_649123201_4FGL_J2336.6-4115_daily_bin1580.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) = 3963.09927015
delta logL = -0.00105762593103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3963.09821269
delta logL = -1.60467607202e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2316       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69657       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=   3963.098     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      249 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    134.17        .25746E-02** at limit **
   2  alpha         2.4880        2.5494        .50000        .78489E-07
   3  Normalizat    1.2328        .26581E-01    .20700E-03   -.32243E-03
   4  Prefactor     .69642        .29388E-01    .29489E-03   -.23341E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.48801
  Normalizat = 1.23279
  Prefactor  = 0.696424
 **********
 **   18 **HESSE 
 **********

 FCN=   3963.098     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    551.65        .51493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4880        3.7432        .50000       -.47949E-02
   3  Normalizat    1.2328        .61887E-01    .41401E-04   -.85596    
   4  Prefactor     .69642        .68420E-01    .11796E-04   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.03526e-10
Minuit parameter uncertainties:
  1  0.000312715
  2  1598.61
  3  0.0618911
  4  0.0684284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58790': 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): 102
logL (Free Index) = 3963.09821156
delta logL = 9.68039785221e-07

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.000e-04  3.127e-04  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  2.488e+00  1.599e+03  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.964e-01  6.843e-02  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.233e+00  6.189e-02  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/58790/cmap_HighResolution_648864001_649123201_4FGL_J2336.6-4115_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-30 02:15:18.869291', job_id='58790', GAL2='0.70', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632993318.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='9.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1580' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 58790: <4FGL_J2336.6-4115_daily_bin1580> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1580> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 02:00:40 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:00:42 2021
Terminated at Thu Sep 30 02:15:19 2021
Results reported at Thu Sep 30 02:15:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1580 354.164 -41.2579 648864001 649123201 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 :                                   732.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

