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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1040
RA = 354.164, Dec = -41.2579
tmin = 508896001, tmax = 509155201
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='55997', job_status='RUN', time_executed='2021-09-30 01:51:08.660791', time_epoch_executed='1632991868.66' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55997/ft1_4FGL_J2336.6-4115_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55997/ft2_4FGL_J2336.6-4115_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55997/ft1_4FGL_J2336.6-4115_daily_bin1040.fits outfile=/scratch/kocevski/55997/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1040.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=508896001.0 tmax=509155201.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.70
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55997/ft1_filtered_4FGL_J2336.6-4115_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/55997/ft2_4FGL_J2336.6-4115_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/55997/ltcube_508896001_509155201_4FGL_J2336.6-4115_daily_bin1040.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/55997/ft2_4FGL_J2336.6-4115_daily_bin1040.fits
.....................!
real 11.61
user 11.29
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55997/ft1_filtered_4FGL_J2336.6-4115_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/55997/ft2_4FGL_J2336.6-4115_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/55997/ltcube_508896001_509155201_4FGL_J2336.6-4115_daily_bin1040.fits outfile=/scratch/kocevski/55997/expmap_508896001_509155201_4FGL_J2336.6-4115_daily_bin1040.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/55997/ltcube_508896001_509155201_4FGL_J2336.6-4115_daily_bin1040.fits
.....................!
real 191.47
user 186.52
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/55997/ft1_filtered_4FGL_J2336.6-4115_daily_bin1040.fits scfile=/scratch/kocevski/55997/ft2_4FGL_J2336.6-4115_daily_bin1040.fits outfile=/scratch/kocevski/55997/cmap_508896001_509155201_4FGL_J2336.6-4115_daily_bin1040.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55997/ft1_filtered_4FGL_J2336.6-4115_daily_bin1040.fits scfile=/scratch/kocevski/55997/ft2_4FGL_J2336.6-4115_daily_bin1040.fits outfile=/scratch/kocevski/55997/cmap_HighResolution_508896001_509155201_4FGL_J2336.6-4115_daily_bin1040.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/55997/ft1_filtered_4FGL_J2336.6-4115_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/55997/ft2_4FGL_J2336.6-4115_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55997/Model_4FGL_J2336.6-4115_daily_bin1040.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/55997/ft1_filtered_4FGL_J2336.6-4115_daily_bin1040.fits......................!
real 36.22
user 34.86
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    128.25       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.656       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.349       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.909       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1849       1.0000         .10000E-03   10000.    
    20 'Prefactor '    75.697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11078E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2172       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1742       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    29.740       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0455       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1910       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=   4257.942     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     4769 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.25        94.050        .27924E-06   -.30721E-04
   2  Prefactor     .10000E-03    9.9068       -.72764E-07** at limit **
   3  Prefactor     23.781        52.926        .41695E-06    .23792E-04
   4  Prefactor     .10000E-03    22.986        .12106E-06** at limit **
   5  Prefactor     12.653        33.865        .28320E-06   -.32071E-05
   6  Prefactor     11.386        11.952        .19693E-06    .29241E-04
   7  Prefactor     .10000E-03    2.6548       -.73724E-08** at limit **
   8  Prefactor     9.0835        20.208        .11060E-06    .49004E-05
   9  Prefactor     .10000E-03    18.258       -.11219E-06** at limit **
  10  Prefactor     .10000E-03    21.202       -.46272E-07** at limit **
  11  Prefactor     .10000E-03    3.7803       -.49899E-08** at limit **
  12  Prefactor     .10000E-03    19.080       -.12654E-06** at limit **
  13  Prefactor     .10000E-03    129.73       -.61315E-07** at limit **
  14  Prefactor     14.347        21.866        .22612E-06   -.24654E-04
  15  norm          .10000E-03    6.6408       -.25423E-07** at limit **
  16  norm          .10000E-03    3.9492       -.45857E-08** at limit **
  17  norm          .10000E-03    3.3608        .32414E-06** at limit **
  18  norm          20.903        14.462        .12114E-06   -.14605E-03
  19  Prefactor     6.1844        7.8262        .27120E-06   -.25599E-03
  20  Prefactor     75.709        57.451       -.50364E-05   -.60520E-03
  21  Prefactor     .10000E-03    62.774       -.38274E-06** at limit **
  22  norm          .10001E-03    7.5564        .27545E-05** at limit **
  23  Prefactor     .10000E-03    12.650        .15028E-06** at limit **
  24  norm          .10000E-03    .64695       -.45044E-08** at limit **
  25  norm          1.2149        4.2741        .38527E-05   -.13012E-02
  26  Prefactor     1.1730        3.2399        .21542E-06    .10023E-04
  27  Prefactor     .10000E-03    13.462        .24763E-06** at limit **
  28  Prefactor     .10000E-03    20.096       -.95645E-07** at limit **
  29  norm          29.745        36.933       -.11044E-06    .98602E-05
  30  Prefactor     .10000E-03    5.8805       -.21008E-06** at limit **
  31  Prefactor     .10000E-03    3.2751        .11212E-06** at limit **
  32  Prefactor     .10000E-03    17.834       -.13292E-06** at limit **
  33  Normalizat    1.0459        .23868       -.22613E-05   -.49088E-03
  34  Prefactor     1.1905        .24861        .13794E-05   -.29133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.252
  Prefactor  = 0.0001
  Prefactor  = 23.7809
  Prefactor  = 0.000100001
  Prefactor  = 12.6529
  Prefactor  = 11.386
  Prefactor  = 0.0001
  Prefactor  = 9.08347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.3468
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 20.9029
  Prefactor  = 6.18442
  Prefactor  = 75.7091
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.21491
  Prefactor  = 1.17297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04588
  Prefactor  = 1.19049
 **********
 **   18 **HESSE 
 **********

 FCN=   4257.942     FROM HESSE     STATUS=OK           716 CALLS     5485 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.25        94.250        .35549E-04   -1.3438    
   2  Prefactor     .10000E-03    9.8407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.781        52.844        .82156E-04   -1.4732    
   4  Prefactor     .10000E-03    22.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.653        33.861        .11260E-03   -1.4996    
   6  Prefactor     11.386        11.957        .11873E-03   -1.5033    
   7  Prefactor     .10000E-03    2.6596        .10373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0835        20.188        .13292E-03   -1.5105    
   9  Prefactor     .10000E-03    18.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7906        .12390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    129.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.347        21.874        .10574E-03   -1.4950    
  15  norm          .10000E-03    6.6392        .16418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9657        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3801        .11698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.903        14.476        .87594E-04   -1.4793    
  19  Prefactor     6.1844        7.8142        .80711E-03   -1.5211    
  20  Prefactor     75.709        60.590        .46151E-04   -1.3966    
  21  Prefactor     .10000E-03    62.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    8.4811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .66464        .10218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2149        4.5375        .12667E-02   -1.5488    
  26  Prefactor     1.1730        3.1648        .18597E-03   -1.5491    
  27  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          29.745        36.910        .73468E-04   -1.4617    
  30  Prefactor     .10000E-03    6.0084        .15447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.3002        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    17.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0459        .29363        .25978E-03   -.91509    
  34  Prefactor     1.1905        .30598        .27068E-03   -.86624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29064e-09
Minuit parameter uncertainties:
  1  94.3607
  2  0.00011992
  3  52.9481
  4  0.000232193
  5  33.9121
  6  11.9595
  7  6.58662e-07
  8  20.2027
  9  6.41745e-05
  10  4.02712e-05
  11  3.35834e-06
  12  6.91252e-05
  13  0.000731398
  14  21.8859
  15  2.4308e-05
  16  2.53225e-06
  17  4.41595e-05
  18  14.4788
  19  7.81553
  20  60.6396
  21  0.000117049
  22  0.000469795
  23  1.35458e-05
  24  6.1743e-08
  25  4.53883
  26  3.1652
  27  4.51492e-05
  28  4.37558e-05
  29  36.9381
  30  4.44025e-05
  31  1.19027e-05
  32  4.41926e-05
  33  0.294085
  34  0.306434
Done.

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

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.215e+00  4.539e+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.190e+00  3.064e-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.046e+00  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/55997/likelihoodResults_508896001_509155201_4FGL_J2336.6-4115_daily_bin1040.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) = 4257.35097136
delta logL = 0.590614389715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4257.27325095
delta logL = 0.668334799368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0368       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9616       1.0000          .0000       5.0000    
     3 'Normalizat'    .95567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2470       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=   4257.273     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0325        16.318        .12355E-01    .50349E-04
   2  alpha         3.9643        4.4818        .38117        .19631E-04
   3  Normalizat    .95538        .54716E-01    .45609E-01   -.53125E-04
   4  Prefactor     1.2473        .60591E-01    .59901E-01   -.38073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03254
  alpha      = 3.9643
  Normalizat = 0.955383
  Prefactor  = 1.24728
 **********
 **   18 **HESSE 
 **********

 FCN=   4257.273     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0325        5.9265        .58048E-04   -1.5505    
   2  alpha         3.9643        4.1544        .15937E-01    .62577    
   3  Normalizat    .95538        .29008        .26955E-03   -.94541    
   4  Prefactor     1.2473        .31358        .26490E-03   -.84889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33018e-10
Minuit parameter uncertainties:
  1  4.94799
  2  2.94945
  3  0.290554
  4  0.314052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55997': 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) = 4257.27324863
delta logL = 0.668337122976

Extracting fit parameters...

4FGL J2336.6-4115
   Spectrum: LogParabola
490         norm:  1.033e+00  4.948e+00  1.000e-04  1.000e+04 ( 1.000e-12)
491        alpha:  3.964e+00  2.949e+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.247e+00  3.141e-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:  9.554e-01  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 354.164 -41.258
Photon Index (Free Index): 3.96 +/- 2.95
Photon Flux (Free Index): 9.54e-08 +/- 9.47e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.46e-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/55997/cmap_HighResolution_508896001_509155201_4FGL_J2336.6-4115_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-05', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='6.68e-01', photon_flux2='9.54e-08', job_status='DONE', time_completed='2021-09-30 02:03:55.336705', photon_index_error2='2.95', photon_index2='3.96', ts='0.09', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='9.82e-08', energy_flux_error2='1.46e-05', EG='1.05', time_epoch_completed='1632992635.34', return_code='0', job_id='55997', GAL2='1.25', EG2='0.96', return_code2='0', photon_flux_error2='9.47e-08', ts2='1.50', photon_index='2.22' WHERE bin_id='1040' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 55997: <4FGL_J2336.6-4115_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1040 354.164 -41.2579 508896001 509155201 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 :                                   748.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            809 sec.

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

