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


Performing analysis on: 4FGL_J2336.6-4115_daily_bin1220
RA = 354.164, Dec = -41.2579
tmin = 555552001, tmax = 555811201
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='57258', job_status='RUN', time_executed='2021-09-30 01:56:52.024401', time_epoch_executed='1632992212.02' WHERE source_name='4FGL J2336.6-4115' and cadence='daily' and bin_id='1220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57258/ft1_4FGL_J2336.6-4115_daily_bin1220.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57258/ft1_4FGL_J2336.6-4115_daily_bin1220.fits outfile=/scratch/kocevski/57258/ft1_filteredMKT_4FGL_J2336.6-4115_daily_bin1220.fits ra=354.164 dec=-41.2579 rad=12.0 tmin=555552001.0 tmax=555811201.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.61
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57258/ft1_filtered_4FGL_J2336.6-4115_daily_bin1220.fits" evtable="EVENTS" scfile=/scratch/kocevski/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits sctable="SC_DATA" outfile=/scratch/kocevski/57258/ltcube_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.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/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits
.....................!
real 11.96
user 11.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57258/ft1_filtered_4FGL_J2336.6-4115_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits sctable="SC_DATA" expcube=/scratch/kocevski/57258/ltcube_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.fits outfile=/scratch/kocevski/57258/expmap_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.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/57258/ltcube_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.fits
.....................!
real 192.48
user 186.58
sys 5.58

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/57258/ft1_filtered_4FGL_J2336.6-4115_daily_bin1220.fits scfile=/scratch/kocevski/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits outfile=/scratch/kocevski/57258/cmap_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57258/ft1_filtered_4FGL_J2336.6-4115_daily_bin1220.fits scfile=/scratch/kocevski/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits outfile=/scratch/kocevski/57258/cmap_HighResolution_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57258/ft1_filtered_4FGL_J2336.6-4115_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57258/Model_4FGL_J2336.6-4115_daily_bin1220.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/57258/ft1_filtered_4FGL_J2336.6-4115_daily_bin1220.fits............!
real 14.49
user 13.26
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/57258/ft1_filtered_4FGL_J2336.6-4115_daily_bin1220.fits', '/scratch/kocevski/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits', expMap='/scratch/kocevski/57258/expmap_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.fits', expCube='/scratch/kocevski/57258/ltcube_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/57258/Model_4FGL_J2336.6-4115_daily_bin1220.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/57258/ft1_filtered_4FGL_J2336.6-4115_daily_bin1220.fits
Spacecraft file(s): /scratch/kocevski/57258/ft2_4FGL_J2336.6-4115_daily_bin1220.fits
Exposure map: /scratch/kocevski/57258/expmap_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.fits
Exposure cube: /scratch/kocevski/57258/ltcube_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/57258/Model_4FGL_J2336.6-4115_daily_bin1220.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 168.608069611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 167.144007404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2748       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25199E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28757E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4751       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6766       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6687       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15444       1.0000         .10000E-03   10000.    
    10 'Prefactor '    103.94       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.219       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5499       1.0000         .10000E-03   10000.    
    15 'norm      '    .40489E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1394       1.0000         .10000E-03   10000.    
    17 'norm      '    .42202E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    33.445       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0079       1.0000         .10000E-03   10000.    
    20 'Prefactor '    223.28       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14982       1.0000         .10000E-03   10000.    
    22 'norm      '    .66453E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2726       1.0000         .10000E-03   10000.    
    24 'norm      '    7.2906       1.0000         .10000E-03   10000.    
    25 'norm      '    .15201E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5694       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2519       1.0000         .10000E-03   10000.    
    28 'Prefactor '    85.222       1.0000         .10000E-03   10000.    
    29 'norm      '    2.9390       1.0000         .10000E-03   10000.    
    30 'Prefactor '    20.158       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .98873E-01   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .75904       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .44892       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   167.1348     FROM MIGRAD    STATUS=CONVERGED    252 CALLS      602 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    779.48        .98417E-02** at limit **
   2  Prefactor     7.3456        1.0023         .0000         .0000    
   3  Prefactor     8.5116        1.0017         .0000         .0000    
   4  Prefactor     .10000E-03    .20923        .41884E-04** at limit **
   5  Prefactor     .15907E-03    .24685        .32258E-02** at limit **
   6  Prefactor     1.4751        1.0736         .0000         .0000    
   7  Prefactor     .14064E-01    .69331E-01    .63625E-02    .12555E-02
   8  Prefactor     .20032E-03    .97249E-01   -.13558E-02** at limit **
   9  Prefactor     .10000E-03    .23852        .57847E-04** at limit **
  10  Prefactor     102.01        .99073       -.16785E-03   -.92062E-02
  11  Prefactor     20.977        .99456       -.10751E-03   -.19216E-03
  12  Prefactor     .83296        .34793       -.62172E-02    .31534E-02
  13  Prefactor     .10000E-03    .26823       -.19374E-04** at limit **
  14  Prefactor     3.5499        1.0103         .0000         .0000    
  15  norm          .10000E-03    .21268        .75918E-04** at limit **
  16  norm          1.1394        1.1628         .0000         .0000    
  17  norm          .10000E-03    .23588        .22928E-03** at limit **
  18  norm          33.157        .99581       -.11448E-06   -.17955E-03
  19  Prefactor     .81006        .52652       -.32636E-02    .89009E-03
  20  Prefactor     239.75        1.0354        .91344E-03    .14402E-01
  21  Prefactor     .10000E-03    .23747        .33554E-04** at limit **
  22  norm          .10000E-03    .21856        .48306E-04** at limit **
  23  Prefactor     3.2726        1.0122         .0000         .0000    
  24  norm          7.2906        1.0024         .0000         .0000    
  25  norm          .10000E-03    .20571        .12682E-03** at limit **
  26  Prefactor     1.5694        1.0628         .0000         .0000    
  27  Prefactor     2.2519        1.0271         .0000         .0000    
  28  Prefactor     89.108        1.0224       -.34729E-04   -.28965E-02
  29  norm          2.9390        1.0153         .0000         .0000    
  30  Prefactor     20.146        1.0000       -.67271E-04   -.13143E-03
  31  Prefactor     .41607E-03    .22590        .70864E-04** at limit **
  32  Prefactor     .10000E-03    .37738       -.15467E-03** at limit **
  33  Normalizat    .10000E-01    .25766       -.61365E-03** at limit **
  34  Prefactor     .44794        .78551        .25706E-03   -.41198E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.3456
  Prefactor  = 8.51155
  Prefactor  = 0.0001
  Prefactor  = 0.000159069
  Prefactor  = 1.47511
  Prefactor  = 0.014064
  Prefactor  = 0.000200318
  Prefactor  = 0.0001
  Prefactor  = 102.005
  Prefactor  = 20.9766
  Prefactor  = 0.832956
  Prefactor  = 0.0001
  Prefactor  = 3.54989
  norm       = 0.0001
  norm       = 1.13943
  norm       = 0.0001
  norm       = 33.1571
  Prefactor  = 0.810058
  Prefactor  = 239.751
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.27264
  norm       = 7.2906
  norm       = 0.0001
  Prefactor  = 1.5694
  Prefactor  = 2.25189
  Prefactor  = 89.1079
  norm       = 2.93896
  Prefactor  = 20.1461
  Prefactor  = 0.000416073
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.44794
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   167.1348     FROM HESSE     STATUS=FAILED        13 CALLS      615 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    779.48        .98417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     510.43        503.05         .0000       -1.5166    
   3  Prefactor     8.5116        1.0017         .0000       -1.5124    
   4  Prefactor     .10000E-03    .20923        .41884E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15907E-03    .24685        .32258E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4751        1.0736         .0000       -1.5465    
   7  Prefactor     .14064E-01    .69331E-01    .63625E-02   -1.5684    
   8  Prefactor     .20032E-03    .97249E-01   -.13558E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .23852        .57847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     102.01        .99073       -.16785E-03   -1.3685    
  11  Prefactor     20.977        .99456       -.10751E-03   -1.4792    
  12  Prefactor     .83296        .34793       -.62172E-02   -1.5525    
  13  Prefactor     .10000E-03    .26823       -.19374E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5499        1.0103         .0000       -1.5331    
  15  norm          .10000E-03    .21268        .75918E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1394        1.1628         .0000       -1.5494    
  17  norm          .10000E-03    .23588        .22928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          33.157        .99581       -.11448E-06   -1.4556    
  19  Prefactor     .81006        .52652       -.32636E-02   -1.5528    
  20  Prefactor     239.75        1.0354        .91344E-03   -1.2599    
  21  Prefactor     .10000E-03    .23747        .33554E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .21856        .48306E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2726        1.0122         .0000       -1.5346    
  24  norm          7.2906        1.0024         .0000       -1.5168    
  25  norm          .10000E-03    .20571        .12682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.5694        1.0628         .0000       -1.5457    
  27  Prefactor     2.2519        1.0271         .0000       -1.5408    
  28  Prefactor     89.108        1.0224       -.34729E-04   -1.3817    
  29  norm          2.9390        1.0153         .0000       -1.5365    
  30  Prefactor     20.146        1.0000       -.67271E-04   -1.4810    
  31  Prefactor     .41607E-03    .22590        .70864E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    .37738       -.15467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .25766       -.61365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .44794        .78551        .25706E-03   -1.1443    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.22635e-10
Minuit parameter uncertainties:
  1  0.000635549
  2  1.00233
  3  1.00173
  4  1.68657e-06
  5  0.00763713
  6  1.07362
  7  0.0622298
  8  0.00624688
  9  1.4917e-06
  10  0.990733
  11  0.994565
  12  0.347926
  13  1.17617e-07
  14  1.01028
  15  4.3471e-06
  16  1.16278
  17  1.22813e-05
  18  0.995812
  19  0.526528
  20  1.03535
  21  1.28999e-06
  22  6.946e-06
  23  1.01217
  24  1.00237
  25  1.24248e-05
  26  1.06278
  27  1.02706
  28  1.02236
  29  1.01526
  30  1.00002
  31  0.0168999
  32  4.25396e-06
  33  9.5633e-06
  34  0.805727
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 167.13483387

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  4.479e-01  8.057e-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.000e-02  9.563e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.164 -41.258
Photon Flux Upper Limit: 1.24e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57258/likelihoodResults_555552001_555811201_4FGL_J2336.6-4115_daily_bin1220.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) = 167.134951933
delta logL = -0.000118062713028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 167.134834113
delta logL = -2.43025283453e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3113       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44803       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=   167.1348     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      232 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10190E-03    6172.4        .76483E-02** at limit **
   2  alpha         2.7117        3.3003        .17718        .21143E-06
   3  Normalizat    .10000E-01    .11697        .57822E-02** at limit **
   4  Prefactor     .44794        .11286        .17714E-03   -.13599E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101902
  alpha      = 2.71174
  Normalizat = 0.01
  Prefactor  = 0.447941
 **********
 **   18 **HESSE 
 **********

 FCN=   167.1348     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10190E-03    56.294        .78646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7117        2.8385        .70872E-02    .84797E-01
   3  Normalizat    .10000E-01    .75367        .11564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44794        .28873        .35427E-04   -1.1443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09779e-08
Minuit parameter uncertainties:
  1  0.020716
  2  3045.34
  3  4.33155e-06
  4  0.289678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57258': 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) = 167.134833906
delta logL = -3.59482612566e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  4.479e-01  2.897e-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.000e-02  4.332e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.164 -41.258

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-04', job_status='DONE', photon_flux_upper_limit='1.24e-06', time_completed='2021-09-30 02:02:22.731348', job_id='57258', GAL2='0.45', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632992542.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.45', dlogl='-3.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1220' AND source_name='4FGL J2336.6-4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:02:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 57258: <4FGL_J2336.6-4115_daily_bin1220> in cluster <slac> Done

Job <4FGL_J2336.6-4115_daily_bin1220> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 01:55:15 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 01:55:16 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:55:16 2021
Terminated at Thu Sep 30 02:02:23 2021
Results reported at Thu Sep 30 02:02:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2336.6-4115_daily_bin1220 354.164 -41.2579 555552001 555811201 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 :                                   328.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             402.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   426 sec.
    Turnaround time :                            428 sec.

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

