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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1105
RA = 354.164, Dec = -41.2579
tmin = 525744001, tmax = 526003201
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='56097', job_status='RUN', time_executed='2021-09-30 01:51:15.549083', time_epoch_executed='1632991875.55' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56097

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56097/ft1_4FGL_J2336.6-4115_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56097/ft2_4FGL_J2336.6-4115_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56097/ft1_4FGL_J2336.6-4115_daily_bin1105.fits outfile=/scratch/kocevski/56097/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1105.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=525744001.0 tmax=526003201.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.30
user 4.05
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56097/ft2_4FGL_J2336.6-4115_daily_bin1105.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/56097/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/56097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1105.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/56097/ft2_4FGL_J2336.6-4115_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/56097/ltcube_525744001_526003201_4FGL_J2336.6-4115_daily_bin1105.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/56097/ft2_4FGL_J2336.6-4115_daily_bin1105.fits
.....................!
real 11.63
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/56097/ft2_4FGL_J2336.6-4115_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/56097/ltcube_525744001_526003201_4FGL_J2336.6-4115_daily_bin1105.fits outfile=/scratch/kocevski/56097/expmap_525744001_526003201_4FGL_J2336.6-4115_daily_bin1105.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/56097/ltcube_525744001_526003201_4FGL_J2336.6-4115_daily_bin1105.fits
.....................!
real 190.40
user 184.97
sys 5.11

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/56097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1105.fits scfile=/scratch/kocevski/56097/ft2_4FGL_J2336.6-4115_daily_bin1105.fits outfile=/scratch/kocevski/56097/cmap_525744001_526003201_4FGL_J2336.6-4115_daily_bin1105.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1105.fits scfile=/scratch/kocevski/56097/ft2_4FGL_J2336.6-4115_daily_bin1105.fits outfile=/scratch/kocevski/56097/cmap_HighResolution_525744001_526003201_4FGL_J2336.6-4115_daily_bin1105.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/56097/ft2_4FGL_J2336.6-4115_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56097/Model_4FGL_J2336.6-4115_daily_bin1105.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/56097/ft1_filtered_4FGL_J2336.6-4115_daily_bin1105.fits.....................!
real 42.58
user 41.32
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1556       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11139E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9911       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3677       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.523       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   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      '    10.731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.8106       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1520       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0329       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .22158E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.4997       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.0241       1.0000         .10000E-03   10000.    
    32 'Prefactor '    18.292       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .75432       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .92022       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=   5621.788     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     4788 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.950        45.997        .32909E-06    .51518E-04
   2  Prefactor     .10000E-03    11.362        .89976E-07** at limit **
   3  Prefactor     62.893        39.219        .16410E-06    .29992E-05
   4  Prefactor     .10000E-03    17.153       -.13534E-06** at limit **
   5  Prefactor     .10000E-03    11.297       -.26657E-07** at limit **
   6  Prefactor     .10000E-03    3.5893       -.41718E-07** at limit **
   7  Prefactor     4.1556        3.5850       -.35601E-07    .12462E-04
   8  Prefactor     .10000E-03    45.086       -.84859E-06** at limit **
   9  Prefactor     .10000E-03    20.776       -.12439E-06** at limit **
  10  Prefactor     .10000E-03    9.1580        .49044E-08** at limit **
  11  Prefactor     .10000E-03    8.1375       -.23659E-07** at limit **
  12  Prefactor     9.9879        42.435        .21685E-06   -.57395E-05
  13  Prefactor     8.4082        93.710        .17764E-05    .26291E-04
  14  Prefactor     13.525        13.899       -.61111E-07    .49718E-05
  15  norm          .10000E-03    2.7176       -.32933E-07** at limit **
  16  norm          .10000E-03    1.8568       -.26754E-07** at limit **
  17  norm          .10000E-03    1.9608       -.15030E-07** at limit **
  18  norm          10.731        7.4782        .14083E-06   -.29852E-05
  19  Prefactor     .10000E-03    3.9288       -.74199E-06** at limit **
  20  Prefactor     .10000E-03    15.283       -.28082E-07** at limit **
  21  Prefactor     .10000E-03    34.744        .43499E-07** at limit **
  22  norm          7.8110        4.2686        .10379E-06   -.84838E-05
  23  Prefactor     9.1509        10.602        .22829E-05    .44298E-04
  24  norm          .10000E-03    .31147       -.54354E-07** at limit **
  25  norm          2.0329        2.2668        .60011E-08   -.25886E-05
  26  Prefactor     .10000E-03    1.9153        .10754E-06** at limit **
  27  Prefactor     9.5012        25.142       -.12033E-05   -.19407E-04
  28  Prefactor     .10000E-03    10.508       -.38810E-07** at limit **
  29  norm          .10000E-03    12.510        .45998E-07** at limit **
  30  Prefactor     .10000E-03    1.3923       -.38036E-07** at limit **
  31  Prefactor     3.0244        2.9100        .84200E-07   -.12882E-04
  32  Prefactor     18.294        34.183        .23613E-06    .19244E-05
  33  Normalizat    .75420        .16772       -.18100E-05    .93195E-04
  34  Prefactor     .92032        .18095        .14916E-05   -.82521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.9501
  Prefactor  = 0.0001
  Prefactor  = 62.8926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.98788
  Prefactor  = 8.40824
  Prefactor  = 13.5245
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.7311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.81103
  Prefactor  = 9.15091
  norm       = 0.0001
  norm       = 2.03287
  Prefactor  = 0.0001
  Prefactor  = 9.50117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0244
  Prefactor  = 18.2939
  Normalizat = 0.754198
  Prefactor  = 0.920321
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.788     FROM HESSE     STATUS=OK           730 CALLS     5518 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.950        46.049        .23833E-03   -1.4021    
   2  Prefactor     .10000E-03    11.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.893        39.121        .50602E-04   -1.4120    
   4  Prefactor     .10000E-03    17.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6301        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1556        3.5882        .12694E-03   -1.5300    
   8  Prefactor     .10000E-03    45.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9879        42.437        .12677E-03   -1.5076    
  13  Prefactor     8.4082        93.760        .13859E-03   -1.5128    
  14  Prefactor     13.525        13.883        .10892E-03   -1.4972    
  15  norm          .10000E-03    2.7183        .12072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8583        .99782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9670        .10248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.731        7.4753        .12231E-03   -1.5053    
  19  Prefactor     .10000E-03    4.2655        .29823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.8110        4.2552        .10702E-03   -1.5149    
  23  Prefactor     9.1509        10.765        .66241E-03   -1.5103    
  24  norm          .10000E-03    .32348        .81560E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0329        2.2577        .11412E-03   -1.5423    
  26  Prefactor     .10000E-03    15.769        .18206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.5012        23.502        .13002E-03   -1.5091    
  28  Prefactor     .10000E-03    10.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    12.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.3953        .86364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.0244        2.8980        .11983E-03   -1.5360    
  32  Prefactor     18.294        34.178        .93647E-04   -1.4852    
  33  Normalizat    .75420        .19291        .22307E-03   -1.0179    
  34  Prefactor     .92032        .21012        .23415E-03   -.95435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77377e-10
Minuit parameter uncertainties:
  1  46.0721
  2  9.54238e-06
  3  39.1374
  4  1.36005e-05
  5  1.06618e-05
  6  1.70973e-06
  7  3.58835
  8  7.05934e-06
  9  2.43776e-05
  10  1.57918e-05
  11  1.66229e-05
  12  41.2253
  13  56.267
  14  13.8867
  15  1.01888e-06
  16  1.28313e-06
  17  1.39715e-06
  18  7.47598
  19  7.60283e-05
  20  9.41741e-07
  21  0.000130467
  22  4.25536
  23  10.7676
  24  1.15896e-06
  25  2.25776
  26  8.42697e-05
  27  23.5253
  28  9.24867e-06
  29  2.01248e-05
  30  6.50777e-07
  31  2.89809
  32  34.2143
  33  0.193085
  34  0.21031
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.203e-01  2.103e-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:  7.542e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 354.164 -41.258
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.33e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 5.39e-06 +/- 5.98e-06

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

Saving results to:
/scratch/kocevski/56097/likelihoodResults_525744001_526003201_4FGL_J2336.6-4115_daily_bin1105.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) = 5621.56775919
delta logL = 0.220118869473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5621.56320175
delta logL = 0.22467631273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2613       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6412       1.0000          .0000       5.0000    
     3 'Normalizat'    .75935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91682       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=   5621.563     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      197 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2619        3.2538        .68292E-02   -.67534E-04
   2  alpha         1.6433        .88027        .44742       -.11916E-04
   3  Normalizat    .75948        .15043        .43077E-01    .37696E-04
   4  Prefactor     .91660        .17387        .45219E-01   -.42761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2619
  alpha      = 1.64329
  Normalizat = 0.759481
  Prefactor  = 0.916596
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.563     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2619        2.5020        .11884E-03   -1.5407    
   2  alpha         1.6433        .80098        .21082E-01   -.34977    
   3  Normalizat    .75948        .17990        .22239E-03   -1.0159    
   4  Prefactor     .91660        .20816        .23458E-03   -.95564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80804e-11
Minuit parameter uncertainties:
  1  2.5021
  2  0.817385
  3  0.180044
  4  0.208345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56097': 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) = 5621.56319771
delta logL = 0.224680352602

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.166e-01  2.083e-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:  7.595e-01  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 1.64 +/- 0.82
Photon Flux (Free Index): 8.58e-09 +/- 1.14e-08
Energy Flux (Free Index): 9.13e-06 +/- 1.33e-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/56097/cmap_HighResolution_525744001_526003201_4FGL_J2336.6-4115_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-05', comment='SUCCESS', photon_flux='1.33e-08', energy_flux2='9.13e-06', photon_flux_error='1.48e-08', dlogl='2.25e-01', energy_flux='5.39e-06', photon_flux2='8.58e-09', job_status='DONE', time_completed='2021-09-30 02:06:25.849884', photon_index_error2='0.82', photon_index2='1.64', ts='1.99', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='5.61e-08', energy_flux_error2='1.33e-05', EG='0.75', time_epoch_completed='1632992785.85', return_code='0', job_id='56097', GAL2='0.92', EG2='0.76', return_code2='0', energy_flux_error='5.98e-06', photon_flux_error2='1.14e-08', ts2='2.44', photon_index='2.22' WHERE bin_id='1105' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:06:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 56097: <4FGL_J2336.6-4115_daily_bin1105> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1105 354.164 -41.2579 525744001 526003201 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 :                                   890.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

