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


Performing analysis on: 4FGL_J2156.3-0036_daily_bin661
RA = 329.08, Dec = -0.6039
tmin = 410659201, tmax = 410918401
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='33230', job_status='RUN', time_executed='2021-09-27 20:54:45.681976', time_epoch_executed='1632801285.68' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33230

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33230/ft1_4FGL_J2156.3-0036_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33230/ft1_4FGL_J2156.3-0036_daily_bin661.fits outfile=/scratch/kocevski/33230/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin661.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=410659201.0 tmax=410918401.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 6.89
user 6.62
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.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/33230/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin661.fits evtable="EVENTS" outfile="/scratch/kocevski/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.fits" evtable="EVENTS" scfile=/scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits sctable="SC_DATA" outfile=/scratch/kocevski/33230/ltcube_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.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/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits
.....................!
real 13.50
user 13.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/33230/ltcube_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.fits outfile=/scratch/kocevski/33230/expmap_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.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/33230/ltcube_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.fits
.....................!
real 190.86
user 185.65
sys 4.80

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/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.fits scfile=/scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits outfile=/scratch/kocevski/33230/cmap_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.fits scfile=/scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits outfile=/scratch/kocevski/33230/cmap_HighResolution_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33230/Model_4FGL_J2156.3-0036_daily_bin661.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/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.fits.....................!
real 37.97
user 36.75
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.fits', '/scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits', expMap='/scratch/kocevski/33230/expmap_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.fits', expCube='/scratch/kocevski/33230/ltcube_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/33230/Model_4FGL_J2156.3-0036_daily_bin661.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/33230/ft1_filtered_4FGL_J2156.3-0036_daily_bin661.fits
Spacecraft file(s): /scratch/kocevski/33230/ft2_4FGL_J2156.3-0036_daily_bin661.fits
Exposure map: /scratch/kocevski/33230/expmap_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.fits
Exposure cube: /scratch/kocevski/33230/ltcube_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/33230/Model_4FGL_J2156.3-0036_daily_bin661.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) = 3042.65049844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.159       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5867       1.0000         .10000E-03   10000.    
    11 'norm      '    .83221E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3105       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.462       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.889       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    68.296       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.166       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10156E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3042.612     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2808 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.177        2.1788        .55278E-06    .39533E-03
   2  Prefactor     15.827        3.3061       -.18192E-06   -.31537E-02
   3  Prefactor     10.377        5.1749        .15067E-05    .20529E-02
   4  Prefactor     .10000E-03    4.2846       -.37312E-05** at limit **
   5  Prefactor     .10000E-03    2.8591       -.18712E-05** at limit **
   6  Prefactor     .10000E-03    15.902       -.29207E-05** at limit **
   7  Prefactor     73.664        7.7121        .12046E-05   -.60665E-03
   8  Prefactor     .10038E-03    63.839       -.11735E-04** at limit **
   9  Prefactor     .10001E-03    32.428       -.14440E-06** at limit **
  10  norm          4.5873        4.0668       -.26683E-06    .46971E-04
  11  norm          .10916E-03    910.47       -.82075E-04** at limit **
  12  Prefactor     9.3064        4.4954       -.19683E-06   -.10652E-01
  13  Prefactor     30.458        1.0600        .19151E-07    .11431E-02
  14  Prefactor     .10000E-03    5.4703        .91193E-05** at limit **
  15  Prefactor     53.858        3.3791       -.20643E-06   -.61558E-02
  16  Prefactor     .10000E-03    11.063        .34985E-05** at limit **
  17  Prefactor     68.273        2.7888       -.64248E-07   -.60501E-02
  18  Prefactor     .10014E-03    50.229       -.71108E-05** at limit **
  19  Prefactor     .10000E-03    7.8724        .68307E-05** at limit **
  20  Prefactor     .10000E-03    1.8415       -.59591E-05** at limit **
  21  norm          18.165        7.4290        .20539E-05    .46628E-02
  22  Prefactor     .10010E-03    95.097        .13464E-04** at limit **
  23  Normalizat    .10000E-01    6.8153       -.26980E-03** at limit **
  24  Prefactor     1.1601        .92372E-01   -.48061E-06    .69225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1772
  Prefactor  = 15.8272
  Prefactor  = 10.3772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.6642
  Prefactor  = 0.000100381
  Prefactor  = 0.000100008
  norm       = 4.58732
  norm       = 0.00010916
  Prefactor  = 9.30636
  Prefactor  = 30.4579
  Prefactor  = 0.0001
  Prefactor  = 53.8583
  Prefactor  = 0.0001
  Prefactor  = 68.273
  Prefactor  = 0.000100141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1646
  Prefactor  = 0.000100096
  Normalizat = 0.01
  Prefactor  = 1.16005
 **********
 **   18 **HESSE 
 **********

 FCN=   3042.612     FROM HESSE     STATUS=OK           453 CALLS     3261 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.177        72.066        .24172E-02   -1.4879    
   2  Prefactor     15.827        35.697        .25147E-02   -1.4912    
   3  Prefactor     10.377        88.541        .31168E-02   -1.5064    
   4  Prefactor     .10000E-03    4.2519        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     73.664        78.602        .11700E-02   -1.3989    
   8  Prefactor     .10038E-03    68.629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    32.488        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5873        4.1567        .46988E-02   -1.5280    
  11  norm          .10916E-03    58.748        .11437       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3064        11.153        .32836E-02   -1.5098    
  13  Prefactor     30.458        12.531        .18149E-02   -1.4604    
  14  Prefactor     .10000E-03    5.4601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.858        48.809        .13660E-02   -1.4239    
  16  Prefactor     .10000E-03    11.052        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.273        40.312        .12142E-02   -1.4054    
  18  Prefactor     .10014E-03    51.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.165        7.5902        .23493E-02   -1.4855    
  22  Prefactor     .10010E-03    98.510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .29065        .32097       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.1601        .14618        .35653E-01   -.87570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7832e-07
Minuit parameter uncertainties:
  1  70.513
  2  35.7453
  3  60.7451
  4  7.74175e-06
  5  3.44671e-06
  6  2.17069e-05
  7  78.7129
  8  0.0102408
  9  0.00102276
  10  4.157
  11  0.0464419
  12  11.1554
  13  12.5325
  14  1.69329e-05
  15  48.8453
  16  6.44645e-06
  17  40.3277
  18  0.00539925
  19  1.32842e-05
  20  6.21278e-06
  21  7.59064
  22  0.00617306
  23  3.4124e-06
  24  0.146235
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.693e-05  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:  1.160e+00  1.462e-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.000e-02  3.412e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.080 -0.604
Photon Flux Upper Limit: 9.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33230/likelihoodResults_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.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): 102
logL (Free Index) = 3042.61241907
delta logL = -0.000866145581767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3042.61155335
delta logL = -4.25580765295e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2295       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1601       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3042.612     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      254 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10644E-03    8.5940        .12791E-01** at limit **
   2  Index         2.0047        8.9955        .50000        .19748E-04
   3  Normalizat    .10000E-01    .10544E-01    .11012E-01** at limit **
   4  Prefactor     1.1601        .46453E-02    .15196E-03    .97370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106436
  Index      = 2.00471
  Normalizat = 0.01
  Prefactor  = 1.16006
 **********
 **   18 **HESSE 
 **********

 FCN=   3042.612     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      285 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10644E-03    203.37        .13744E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0047        5.6905        .50000       -.64232    
   3  Normalizat    .10000E-01    .27594        .44049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1601        .23383E-01    .30391E-04   -.87570    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74706e-07
Minuit parameter uncertainties:
  1  0.0726076
  2  1062.24
  3  4.66927e-06
  4  0.0233827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33230': 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): 102
logL (Free Index) = 3042.61155194
delta logL = 9.78698153631e-07

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  1.064e-04  7.261e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.005e+00  1.062e+03  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:  1.160e+00  2.338e-02  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.000e-02  4.669e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 329.080 -0.604

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/33230/cmap_HighResolution_410659201_410918401_4FGL_J2156.3-0036_daily_bin661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.87e-08', time_completed='2021-09-27 21:03:17.641503', job_id='33230', GAL2='1.16', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632801797.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='661' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:03:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 33230: <4FGL_J2156.3-0036_daily_bin661> in cluster <slac> Done

Job <4FGL_J2156.3-0036_daily_bin661> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep 27 20:50:28 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 20:52:48 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:52:48 2021
Terminated at Mon Sep 27 21:03:17 2021
Results reported at Mon Sep 27 21:03:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin661 329.08 -0.6039 410659201 410918401 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 :                                   510.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            769 sec.

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

