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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1112
RA = 354.164, Dec = -41.2579
tmin = 527558401, tmax = 527817601
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='56108', job_status='RUN', time_executed='2021-09-30 01:52:23.054647', time_epoch_executed='1632991943.05' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56108/ft1_4FGL_J2336.6-4115_daily_bin1112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56108/ft2_4FGL_J2336.6-4115_daily_bin1112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56108/ft1_4FGL_J2336.6-4115_daily_bin1112.fits outfile=/scratch/kocevski/56108/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1112.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=527558401.0 tmax=527817601.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.54
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56108/ft1_filtered_4FGL_J2336.6-4115_daily_bin1112.fits" evtable="EVENTS" scfile=/scratch/kocevski/56108/ft2_4FGL_J2336.6-4115_daily_bin1112.fits sctable="SC_DATA" outfile=/scratch/kocevski/56108/ltcube_527558401_527817601_4FGL_J2336.6-4115_daily_bin1112.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/56108/ft2_4FGL_J2336.6-4115_daily_bin1112.fits
.....................!
real 11.78
user 11.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56108/ft1_filtered_4FGL_J2336.6-4115_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/56108/ft2_4FGL_J2336.6-4115_daily_bin1112.fits sctable="SC_DATA" expcube=/scratch/kocevski/56108/ltcube_527558401_527817601_4FGL_J2336.6-4115_daily_bin1112.fits outfile=/scratch/kocevski/56108/expmap_527558401_527817601_4FGL_J2336.6-4115_daily_bin1112.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/56108/ltcube_527558401_527817601_4FGL_J2336.6-4115_daily_bin1112.fits
.....................!
real 193.18
user 187.74
sys 5.13

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/56108/ft1_filtered_4FGL_J2336.6-4115_daily_bin1112.fits scfile=/scratch/kocevski/56108/ft2_4FGL_J2336.6-4115_daily_bin1112.fits outfile=/scratch/kocevski/56108/cmap_527558401_527817601_4FGL_J2336.6-4115_daily_bin1112.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/56108/ft1_filtered_4FGL_J2336.6-4115_daily_bin1112.fits scfile=/scratch/kocevski/56108/ft2_4FGL_J2336.6-4115_daily_bin1112.fits outfile=/scratch/kocevski/56108/cmap_HighResolution_527558401_527817601_4FGL_J2336.6-4115_daily_bin1112.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/56108/ft1_filtered_4FGL_J2336.6-4115_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/56108/ft2_4FGL_J2336.6-4115_daily_bin1112.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56108/Model_4FGL_J2336.6-4115_daily_bin1112.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/56108/ft1_filtered_4FGL_J2336.6-4115_daily_bin1112.fits.....................!
real 32.12
user 30.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.007       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.475       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42793E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2748       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.913       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15134E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.196       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.326       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3326       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.747       1.0000         .10000E-03   10000.    
    21 'Prefactor '    148.44       1.0000         .10000E-03   10000.    
    22 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4014       1.0000         .10000E-03   10000.    
    24 'norm      '    .45276       1.0000         .10000E-03   10000.    
    25 'norm      '    3.4784       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.9180       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.124       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.698       1.0000         .10000E-03   10000.    
    29 'norm      '    7.2379       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.4324       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .58083       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0800       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=   3587.326     FROM MIGRAD    STATUS=CONVERGED   1683 CALLS     5616 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.010        63.274        .41671E-04    .10094E-05
   2  Prefactor     45.477        40.742        .59455E-04   -.41971E-04
   3  Prefactor     .10000E-03    56.584        .18142E-02** at limit **
   4  Prefactor     .10000E-03    15.200        .18142E-02** at limit **
   5  Prefactor     .60294E-02    35.289        .10189        .29666E-04
   6  Prefactor     4.2749        10.607        .19486E-03   -.97722E-05
   7  Prefactor     23.912        10.093        .81913E-04    .17189E-03
   8  Prefactor     .10001E-03    471.29        .78537E-02** at limit **
   9  Prefactor     .10000E-03    48.253        .18142E-02** at limit **
  10  Prefactor     .10000E-03    18.874        .18142E-02** at limit **
  11  Prefactor     .10000E-03    5.6343        .13747E-02** at limit **
  12  Prefactor     .10000E-03    15.251        .18142E-02** at limit **
  13  Prefactor     41.197        40.298        .62454E-04    .14381E-04
  14  Prefactor     .10000E-03    12.632        .18142E-02** at limit **
  15  norm          11.326        11.162        .59519E-03    .10878E-04
  16  norm          .10000E-03    2.6383        .95001E-03** at limit **
  17  norm          .10000E-03    2.1931        .86602E-03** at limit **
  18  norm          .10000E-03    3.3694        .10732E-02** at limit **
  19  Prefactor     7.3317        8.4018        .14812E-03   -.43596E-04
  20  Prefactor     34.759        63.889        .67984E-04   -.19147E-04
  21  Prefactor     148.43        81.281        .33078E-04   -.45265E-04
  22  norm          .10000E-03    9.9258        .36089E-03** at limit **
  23  Prefactor     8.4010        25.969        .13831E-03   -.50059E-04
  24  norm          .45297        1.3368        .10960E-03    .14496E-03
  25  norm          3.4799        8.0438        .99961E-03   -.63570E-04
  26  Prefactor     4.9171        4.7496        .11122E-03   -.98798E-04
  27  Prefactor     19.130        33.618        .91586E-04   -.39101E-04
  28  Prefactor     18.760        71.969        .92625E-04   -.66279E-05
  29  norm          7.2352        49.995        .14909E-03   -.24401E-05
  30  Prefactor     .10000E-03    10.427        .36285E-03** at limit **
  31  Prefactor     3.4325        6.4460        .18164E-03    .72133E-04
  32  Prefactor     .10000E-03    22.756        .18142E-02** at limit **
  33  Normalizat    .58072        .28781        .28490E-03   -.16201E-03
  34  Prefactor     1.0801        .28863        .23680E-03   -.32750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.0104
  Prefactor  = 45.4767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00602943
  Prefactor  = 4.27493
  Prefactor  = 23.9121
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1968
  Prefactor  = 0.000100001
  norm       = 11.3257
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.33167
  Prefactor  = 34.759
  Prefactor  = 148.431
  norm       = 0.0001
  Prefactor  = 8.40101
  norm       = 0.45297
  norm       = 3.47986
  Prefactor  = 4.91706
  Prefactor  = 19.1303
  Prefactor  = 18.7604
  norm       = 7.23522
  Prefactor  = 0.000100001
  Prefactor  = 3.43253
  Prefactor  = 0.000100002
  Normalizat = 0.580716
  Prefactor  = 1.08013
 **********
 **   18 **HESSE 
 **********

 FCN=   3587.326     FROM HESSE     STATUS=OK           710 CALLS     6326 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.010        63.273        .83343E-05   -1.3776    
   2  Prefactor     45.477        40.731        .23782E-05   -1.4358    
   3  Prefactor     .10000E-03    56.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .60294E-02    34.055        .10478       -1.5693    
   6  Prefactor     4.2749        10.605        .77945E-05   -1.5294    
   7  Prefactor     23.912        9.9926        .32765E-05   -1.4730    
   8  Prefactor     .10001E-03    481.60        .31415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    48.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6368        .27494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.197        40.298        .24982E-05   -1.4423    
  14  Prefactor     .10000E-03    12.633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.326        11.162        .23808E-04   -1.5035    
  16  norm          .10000E-03    2.6383        .19000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1931        .17320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3695        .21465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3317        8.3990        .59248E-05   -1.5166    
  20  Prefactor     34.759        63.703        .27194E-05   -1.4528    
  21  Prefactor     148.43        81.279        .66156E-05   -1.3265    
  22  norm          .10000E-03    9.9260        .72177E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.4010        25.953        .55322E-05   -1.5128    
  24  norm          .45297        1.3362        .43839E-05   -1.5573    
  25  norm          3.4799        8.0164        .39984E-04   -1.5335    
  26  Prefactor     4.9171        4.7486        .44486E-05   -1.5264    
  27  Prefactor     19.130        33.609        .36635E-05   -1.4833    
  28  Prefactor     18.760        71.960        .37050E-05   -1.4841    
  29  norm          7.2352        49.977        .59637E-05   -1.5170    
  30  Prefactor     .10000E-03    10.428        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.4325        6.4434        .72657E-05   -1.5337    
  32  Prefactor     .10000E-03    22.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .58072        .28805        .11396E-04   -1.0881    
  34  Prefactor     1.0801        .28888        .47360E-04   -.90104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31709e-10
Minuit parameter uncertainties:
  1  63.3194
  2  40.7562
  3  1.20409e-05
  4  9.49908e-05
  5  0.899239
  6  10.6099
  7  9.99331
  8  0.00338388
  9  0.000201398
  10  0.000190838
  11  9.8568e-05
  12  3.53451e-05
  13  40.3244
  14  0.000206715
  15  11.1642
  16  7.49024e-06
  17  1.56423e-06
  18  2.83983e-05
  19  8.40034
  20  63.828
  21  81.3399
  22  4.31384e-06
  23  25.9879
  24  1.33633
  25  8.01886
  26  4.74898
  27  33.6421
  28  72.2955
  29  38.0765
  30  0.000207056
  31  6.4447
  32  0.000377207
  33  0.2888
  34  0.289304
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.080e+00  2.893e-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:  5.807e-01  2.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/56108/likelihoodResults_527558401_527817601_4FGL_J2336.6-4115_daily_bin1112.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3585.28617108
delta logL = 2.0396722885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3585.25742005
delta logL = 2.06842332417

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3585.257     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      258 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93475        9.4121        .68003E-02    .56997E-04
   2  alpha         4.3016        4.6262        .23753        .10863E-04
   3  Normalizat    .41767        .77728E-01    .74959E-01    .13477E-04
   4  Prefactor     1.1943        .86598E-01    .51137E-01   -.12295E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.934749
  alpha      = 4.30162
  Normalizat = 0.417675
  Prefactor  = 1.19434
 **********
 **   18 **HESSE 
 **********

 FCN=   3585.257     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93475        3.4603        .30382E-04   -1.5515    
   2  alpha         4.3016        3.9418        .10775E-01    .80473    
   3  Normalizat    .41767        .26575        .33191E-03   -1.1640    
   4  Prefactor     1.1943        .29015        .22606E-03   -.86506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58063e-11
Minuit parameter uncertainties:
  1  3.46105
  2  2.17057
  3  0.266554
  4  0.290534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56108': 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) = 3585.25741954
delta logL = 2.06842382503

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.194e+00  2.905e-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:  4.177e-01  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.90
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 4.30 +/- 2.17
Photon Flux (Free Index): 1.55e-07 +/- 9.06e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.39e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-05', comment='SUCCESS', energy_flux2='2.32e-05', dlogl='2.07e+00', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-30 02:04:25.908029', photon_index_error2='2.17', photon_index2='4.30', ts='0.32', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.39e-05', EG='0.58', time_epoch_completed='1632992665.91', return_code='0', job_id='56108', GAL2='1.19', EG2='0.42', return_code2='0', photon_flux_error2='9.06e-08', ts2='4.90', photon_index='2.22' WHERE bin_id='1112' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:04:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 56108: <4FGL_J2336.6-4115_daily_bin1112> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1112> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 01:50:37 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:50:39 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:39 2021
Terminated at Thu Sep 30 02:04:26 2021
Results reported at Thu Sep 30 02:04:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1112 354.164 -41.2579 527558401 527817601 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 :                                   719.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

