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


Performing analysis on: 4FGL_J2156.3-0036_daily_bin354
RA = 329.08, Dec = -0.6039
tmin = 331084801, tmax = 331344001
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='31912', job_status='RUN', time_executed='2021-09-27 20:50:11.715053', time_epoch_executed='1632801011.72' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31912

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31912/ft1_4FGL_J2156.3-0036_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31912/ft2_4FGL_J2156.3-0036_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31912/ft1_4FGL_J2156.3-0036_daily_bin354.fits outfile=/scratch/kocevski/31912/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin354.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=331084801.0 tmax=331344001.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.38
user 3.13
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31912/ft2_4FGL_J2156.3-0036_daily_bin354.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/31912/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin354.fits evtable="EVENTS" outfile="/scratch/kocevski/31912/ft1_filtered_4FGL_J2156.3-0036_daily_bin354.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31912/ft1_filtered_4FGL_J2156.3-0036_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/31912/ft2_4FGL_J2156.3-0036_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/31912/ltcube_331084801_331344001_4FGL_J2156.3-0036_daily_bin354.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/31912/ft2_4FGL_J2156.3-0036_daily_bin354.fits
.....................!
real 14.51
user 14.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31912/ft1_filtered_4FGL_J2156.3-0036_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/31912/ft2_4FGL_J2156.3-0036_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/31912/ltcube_331084801_331344001_4FGL_J2156.3-0036_daily_bin354.fits outfile=/scratch/kocevski/31912/expmap_331084801_331344001_4FGL_J2156.3-0036_daily_bin354.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/31912/ltcube_331084801_331344001_4FGL_J2156.3-0036_daily_bin354.fits
.....................!
real 193.17
user 186.74
sys 4.98

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/31912/ft1_filtered_4FGL_J2156.3-0036_daily_bin354.fits scfile=/scratch/kocevski/31912/ft2_4FGL_J2156.3-0036_daily_bin354.fits outfile=/scratch/kocevski/31912/cmap_331084801_331344001_4FGL_J2156.3-0036_daily_bin354.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31912/ft1_filtered_4FGL_J2156.3-0036_daily_bin354.fits scfile=/scratch/kocevski/31912/ft2_4FGL_J2156.3-0036_daily_bin354.fits outfile=/scratch/kocevski/31912/cmap_HighResolution_331084801_331344001_4FGL_J2156.3-0036_daily_bin354.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31912/ft1_filtered_4FGL_J2156.3-0036_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/31912/ft2_4FGL_J2156.3-0036_daily_bin354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31912/Model_4FGL_J2156.3-0036_daily_bin354.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/31912/ft1_filtered_4FGL_J2156.3-0036_daily_bin354.fits.....................!
real 62.34
user 60.98
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11714E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15212E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10871E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12631E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11706E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7728       1.0000         .10000E-03   10000.    
    11 'norm      '    13.298       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5314       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4207       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6608       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7068       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2837       1.0000         .10000E-03   10000.    
    21 'norm      '    .62405       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .57311       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0476       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=   6252.999     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2742 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.592       -.25486E-05** at limit **
   2  Prefactor     .10000E-03    7.2921        .56581E-08** at limit **
   3  Prefactor     18.559        38.089        .24448E-06   -.16002E-03
   4  Prefactor     .10000E-03    1.8054        .27025E-08** at limit **
   5  Prefactor     .10000E-03    1.7785        .21350E-05** at limit **
   6  Prefactor     .10000E-03    23.913       -.15524E-05** at limit **
   7  Prefactor     .10000E-03    14.235        .31415E-06** at limit **
   8  Prefactor     .10000E-03    86.219        .94971E-06** at limit **
   9  Prefactor     .10000E-03    27.866        .34873E-05** at limit **
  10  norm          5.7717        2.9240        .13116E-06   -.18927E-05
  11  norm          13.324        18.218        .95138E-06    .34601E-04
  12  Prefactor     .10000E-03    5.4720       -.14308E-07** at limit **
  13  Prefactor     23.624        10.517        .26775E-06   -.64942E-04
  14  Prefactor     3.5303        6.2291       -.30538E-06   -.20939E-03
  15  Prefactor     .10000E-03    11.234       -.75026E-07** at limit **
  16  Prefactor     7.4177        10.729        .31069E-06   -.29197E-04
  17  Prefactor     .10000E-03    24.957        .55502E-06** at limit **
  18  Prefactor     6.6387        37.779        .19598E-05   -.15104E-05
  19  Prefactor     9.7024        13.659        .35224E-06   -.77629E-04
  20  Prefactor     5.2806        5.0113        .48543E-07   -.13331E-03
  21  norm          .62325        4.2241        .30730E-05    .21425E-03
  22  Prefactor     .10000E-03    135.32        .31792E-05** at limit **
  23  Normalizat    .57329        .24075       -.40943E-05   -.39846E-03
  24  Prefactor     1.0476        .12501        .32740E-06   -.89910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 18.5586
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.77175
  norm       = 13.3237
  Prefactor  = 0.0001
  Prefactor  = 23.6239
  Prefactor  = 3.53032
  Prefactor  = 0.0001
  Prefactor  = 7.41773
  Prefactor  = 0.0001
  Prefactor  = 6.63865
  Prefactor  = 9.70238
  Prefactor  = 5.28058
  norm       = 0.623254
  Prefactor  = 0.000100003
  Normalizat = 0.573286
  Prefactor  = 1.04765
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.999     FROM HESSE     STATUS=OK           395 CALLS     3137 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.559        38.066        .93218E-04   -1.4846    
   4  Prefactor     .10000E-03    1.8092        .10376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3419        .16616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    86.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7717        2.9198        .89764E-04   -1.5227    
  11  norm          13.324        18.223        .10984E-03   -1.4978    
  12  Prefactor     .10000E-03    5.5704        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.624        10.545        .82407E-04   -1.4735    
  14  Prefactor     3.5303        6.2242        .21511E-03   -1.5332    
  15  Prefactor     .10000E-03    11.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4177        10.715        .14723E-03   -1.5163    
  17  Prefactor     .10000E-03    25.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6387        37.785        .15548E-03   -1.5193    
  19  Prefactor     9.7024        13.577        .12862E-03   -1.5085    
  20  Prefactor     5.2806        4.9616        .14847E-03   -1.5248    
  21  norm          .62325        4.4723        .31323E-03   -1.5550    
  22  Prefactor     .10000E-03    136.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .57329        .27321        .38669E-03   -1.0913    
  24  Prefactor     1.0476        .14395        .16463E-03   -.91158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4604e-09
Minuit parameter uncertainties:
  1  0.00051359
  2  5.47544e-06
  3  38.1154
  4  1.39792e-06
  5  0.000181644
  6  0.000289719
  7  2.08449e-05
  8  0.000286041
  9  0.000619482
  10  2.91989
  11  18.2301
  12  7.13311e-06
  13  10.5454
  14  6.22536
  15  6.60207e-06
  16  10.7174
  17  0.000185071
  18  31.706
  19  13.5815
  20  4.96199
  21  3.33917
  22  0.00119982
  23  0.273856
  24  0.144001
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  3.530e+00  6.225e+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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.048e+00  1.440e-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:  5.733e-01  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/31912/likelihoodResults_331084801_331344001_4FGL_J2156.3-0036_daily_bin354.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) = 6252.491754
delta logL = 0.506956195862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6252.49033691
delta logL = 0.508373282351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6788       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4479       1.0000          .0000       10.000    
     3 'Normalizat'    .58503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0421       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=   6252.490     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7195        21.115        .38817E-02    .27735E-05
   2  Index         1.4516        1.3123        .30431       -.22306E-04
   3  Normalizat    .58509        .22322        .86445E-01    .33292E-04
   4  Prefactor     1.0420        .12482        .40396E-01   -.12567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.71947
  Index      = 1.45161
  Normalizat = 0.58509
  Prefactor  = 1.04203
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.490     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7195        8.6147        .15527E-03   -1.5189    
   2  Index         1.4516        .66337        .11596E-01   -.78904    
   3  Normalizat    .58509        .25089        .38291E-03   -1.0862    
   4  Prefactor     1.0420        .14258        .16494E-03   -.91341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1071e-10
Minuit parameter uncertainties:
  1  8.61626
  2  0.667355
  3  0.25138
  4  0.142629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31912': 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) = 6252.49031671
delta logL = 0.508393479632

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  6.719e+00  8.616e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.452e+00  6.674e-01  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.042e+00  1.426e-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:  5.851e-01  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 329.080 -0.604
Photon Index (Free Index): 1.45 +/- 0.67
Photon Flux (Free Index): 7.04e-09 +/- 1.06e-08
Energy Flux (Free Index): 2.62e-05 +/- 4.90e-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/31912/cmap_HighResolution_331084801_331344001_4FGL_J2156.3-0036_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', comment='SUCCESS', energy_flux2='2.62e-05', dlogl='5.08e-01', photon_flux2='7.04e-09', job_status='DONE', time_completed='2021-09-27 21:01:37.376745', photon_index_error2='0.67', photon_index2='1.45', ts='0.51', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='4.90e-05', EG='0.57', time_epoch_completed='1632801697.38', return_code='0', job_id='31912', GAL2='1.04', EG2='0.59', return_code2='0', photon_flux_error2='1.06e-08', ts2='1.53', photon_index='2.25' WHERE bin_id='354' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:01:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 31912: <4FGL_J2156.3-0036_daily_bin354> in cluster <slac> Done

Job <4FGL_J2156.3-0036_daily_bin354> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 20:46:14 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 20:46:40 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:46:40 2021
Terminated at Mon Sep 27 21:01:37 2021
Results reported at Mon Sep 27 21:01:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin354 329.08 -0.6039 331084801 331344001 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 :                                   684.00 sec.
    Max Memory :                                 1045 MB
    Average Memory :                             275.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            923 sec.

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

