/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 144 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2156.3-0036_daily_bin388
RA = 329.08, Dec = -0.6039
tmin = 339897601, tmax = 340156801
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='31963', job_status='RUN', time_executed='2021-09-27 20:49:36.039261', time_epoch_executed='1632800976.04' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31963

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31963/ft1_4FGL_J2156.3-0036_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31963/ft1_4FGL_J2156.3-0036_daily_bin388.fits outfile=/scratch/kocevski/31963/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin388.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=339897601.0 tmax=340156801.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.37
user 3.15
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.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/31963/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin388.fits evtable="EVENTS" outfile="/scratch/kocevski/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.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.53
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/31963/ltcube_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.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/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits
.....................!
real 13.39
user 13.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/31963/ltcube_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.fits outfile=/scratch/kocevski/31963/expmap_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.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/31963/ltcube_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.fits
.....................!
real 193.14
user 186.96
sys 5.75

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2156.3-0036 @ 329.08 -0.6039

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.fits scfile=/scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits outfile=/scratch/kocevski/31963/cmap_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.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=329.08 yref=-0.6039 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.fits scfile=/scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits outfile=/scratch/kocevski/31963/cmap_HighResolution_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.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=329.08 yref=-0.6039 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31963/Model_4FGL_J2156.3-0036_daily_bin388.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/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.fits.....................!
real 60.23
user 58.66
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.fits', '/scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits', expMap='/scratch/kocevski/31963/expmap_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.fits', expCube='/scratch/kocevski/31963/ltcube_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31963/Model_4FGL_J2156.3-0036_daily_bin388.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2156.3-0036'

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  2.502e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.249e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/31963/ft1_filtered_4FGL_J2156.3-0036_daily_bin388.fits
Spacecraft file(s): /scratch/kocevski/31963/ft2_4FGL_J2156.3-0036_daily_bin388.fits
Exposure map: /scratch/kocevski/31963/expmap_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.fits
Exposure cube: /scratch/kocevski/31963/ltcube_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31963/Model_4FGL_J2156.3-0036_daily_bin388.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) = 5834.1461772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.879       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44273E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7043       1.0000         .10000E-03   10000.    
     7 'Prefactor '    92.978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.5690       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1618       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.518       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23873E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    54.068       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1596       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66686       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5834.132     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2743 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.342       -.13034E-05** at limit **
   2  Prefactor     67.886        29.527       -.17682E-06   -.91355E-05
   3  Prefactor     46.314        41.959       -.78415E-06   -.65575E-04
   4  Prefactor     .10000E-03    11.424       -.16549E-06** at limit **
   5  Prefactor     .64403E-01    25.152        .37406E-05   -.23305E-04
   6  Prefactor     3.5642        92.771        .35352E-05    .19199E-04
   7  Prefactor     92.890        63.145       -.12032E-05   -.90158E-04
   8  Prefactor     .10000E-03    25.804        .68009E-06** at limit **
   9  Prefactor     .10000E-03    22.193       -.96120E-06** at limit **
  10  norm          8.5698        3.0080       -.49987E-07   -.18267E-03
  11  norm          .10000E-03    6.0462       -.16766E-06** at limit **
  12  Prefactor     .10000E-03    3.8047       -.53585E-06** at limit **
  13  Prefactor     5.1643        7.7710       -.31681E-06   -.14112E-03
  14  Prefactor     12.720        15.260        .71248E-08   -.22009E-04
  15  Prefactor     29.524        20.277        .90470E-07    .52227E-05
  16  Prefactor     5.0089        18.204       -.13241E-05   -.58037E-04
  17  Prefactor     .10000E-03    8.5524        .25723E-06** at limit **
  18  Prefactor     .10000E-03    8.1330       -.14111E-07** at limit **
  19  Prefactor     .10000E-03    9.8493       -.43525E-06** at limit **
  20  Prefactor     .10000E-03    3.1067       -.34130E-06** at limit **
  21  norm          54.061        10.036        .13154E-06    .25788E-03
  22  Prefactor     .10000E-03    52.257        .24200E-06** at limit **
  23  Normalizat    1.1593        .28163       -.43343E-05    .15130E-03
  24  Prefactor     .66693        .14352        .34214E-05    .75893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 67.8861
  Prefactor  = 46.3142
  Prefactor  = 0.0001
  Prefactor  = 0.0644028
  Prefactor  = 3.56422
  Prefactor  = 92.8897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.56978
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.16431
  Prefactor  = 12.72
  Prefactor  = 29.5245
  Prefactor  = 5.0089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 54.0613
  Prefactor  = 0.0001
  Normalizat = 1.15929
  Prefactor  = 0.666933
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.132     FROM HESSE     STATUS=OK           399 CALLS     3142 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.886        29.556        .48717E-04   -1.4058    
   3  Prefactor     46.314        42.863        .58842E-04   -1.4346    
   4  Prefactor     .10000E-03    11.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .64403E-01    26.961        .16716E-02   -1.5657    
   6  Prefactor     3.5642        93.169        .20983E-03   -1.5330    
   7  Prefactor     92.890        63.980        .20839E-03   -1.3777    
   8  Prefactor     .10000E-03    25.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.5698        3.0166        .75184E-04   -1.5122    
  11  norm          .10000E-03    6.0547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8482        .14602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1643        7.8400        .17695E-03   -1.5253    
  14  Prefactor     12.720        15.236        .11233E-03   -1.4995    
  15  Prefactor     29.524        20.290        .73743E-04   -1.4621    
  16  Prefactor     5.0089        18.291        .17969E-03   -1.5260    
  17  Prefactor     .10000E-03    8.5877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.1441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1066        .25555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          54.061        9.9894        .54549E-04   -1.4236    
  22  Prefactor     .10000E-03    52.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1593        .28667        .29784E-03   -.87870    
  24  Prefactor     .66693        .14556        .20528E-03   -1.0484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07669e-08
Minuit parameter uncertainties:
  1  0.000211226
  2  29.5619
  3  42.8911
  4  3.76498e-06
  5  2.63457
  6  36.5087
  7  64.0275
  8  7.43657e-05
  9  0.000126539
  10  3.01662
  11  1.08231e-05
  12  3.19632e-05
  13  7.84154
  14  15.2402
  15  20.2946
  16  18.3119
  17  3.77146e-05
  18  1.43764e-06
  19  1.35916e-05
  20  9.81176e-05
  21  9.98972
  22  4.1876e-05
  23  0.287056
  24  0.145644
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  1.272e+01  1.524e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.249e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  6.669e-01  1.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.159e+00  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 329.080 -0.604
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31963/likelihoodResults_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.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) = 5832.46150232
delta logL = 1.67087118349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5832.31316117
delta logL = 1.81921233315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14477E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5553       1.0000          .0000       10.000    
     3 'Normalizat'    .97631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5832.313     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      408 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13510E-03    .69196E-04    .20104E-03** at limit **
   2  Index         7.5819        .21259        .81530E-01    .17850E-03
   3  Normalizat    .97602        .23564        .72458E-01    .29345E-04
   4  Prefactor     .74821        .12434        .43037E-01    .45505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000135097
  Index      = 7.5819
  Normalizat = 0.976024
  Prefactor  = 0.748211
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.313     FROM HESSE     STATUS=OK            35 CALLS      443 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13510E-03    .99145E-03    .83327E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5819        1.0645        .33838E-02    .54262    
   3  Normalizat    .97602        .28384        .32060E-03   -.93838    
   4  Prefactor     .74821        .15052        .19488E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20521e-10
Minuit parameter uncertainties:
  1  0.000373077
  2  1.07583
  3  0.284279
  4  0.1506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31963': 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) = 5832.31313235
delta logL = 1.81924116098

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  1.351e-04  3.731e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  7.582e+00  1.076e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  7.482e-01  1.506e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.760e-01  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.05
Ra Dec: 329.080 -0.604
Photon Index (Free Index): 7.58 +/- 1.08
Photon Flux (Free Index): 1.48e-07 +/- 7.94e-07
Energy Flux (Free Index): 1.74e-05 +/- 9.31e-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/31963/cmap_HighResolution_339897601_340156801_4FGL_J2156.3-0036_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='1.82e+00', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-27 21:00:49.927970', photon_index_error2='1.08', photon_index2='7.58', ts='0.95', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='9.31e-05', EG='1.16', time_epoch_completed='1632801649.93', return_code='0', job_id='31963', GAL2='0.75', EG2='0.98', return_code2='0', photon_flux_error2='7.94e-07', ts2='5.05', photon_index='2.25' WHERE bin_id='388' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 31963: <4FGL_J2156.3-0036_daily_bin388> in cluster <slac> Done

Job <4FGL_J2156.3-0036_daily_bin388> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 20:46:18 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 20:47:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 20:47:03 2021
Terminated at Mon Sep 27 21:00:50 2021
Results reported at Mon Sep 27 21:00:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin388 329.08 -0.6039 339897601 340156801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2156.3-0036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            872 sec.

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

