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


Performing analysis on: 4FGL_J2156.3-0036_daily_bin1398
RA = 329.08, Dec = -0.6039
tmin = 601689601, tmax = 601948801
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='36440', job_status='RUN', time_executed='2021-09-27 21:04:48.661740', time_epoch_executed='1632801888.66' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36440/ft1_4FGL_J2156.3-0036_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36440/ft2_4FGL_J2156.3-0036_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36440/ft1_4FGL_J2156.3-0036_daily_bin1398.fits outfile=/scratch/kocevski/36440/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin1398.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=601689601.0 tmax=601948801.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.65
user 3.38
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36440/ft2_4FGL_J2156.3-0036_daily_bin1398.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/36440/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin1398.fits evtable="EVENTS" outfile="/scratch/kocevski/36440/ft1_filtered_4FGL_J2156.3-0036_daily_bin1398.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.59
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36440/ft1_filtered_4FGL_J2156.3-0036_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/36440/ft2_4FGL_J2156.3-0036_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/36440/ltcube_601689601_601948801_4FGL_J2156.3-0036_daily_bin1398.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/36440/ft2_4FGL_J2156.3-0036_daily_bin1398.fits
.....................!
real 15.10
user 14.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36440/ft1_filtered_4FGL_J2156.3-0036_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/36440/ft2_4FGL_J2156.3-0036_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/36440/ltcube_601689601_601948801_4FGL_J2156.3-0036_daily_bin1398.fits outfile=/scratch/kocevski/36440/expmap_601689601_601948801_4FGL_J2156.3-0036_daily_bin1398.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/36440/ltcube_601689601_601948801_4FGL_J2156.3-0036_daily_bin1398.fits
.....................!
real 192.16
user 187.47
sys 4.25

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/36440/ft1_filtered_4FGL_J2156.3-0036_daily_bin1398.fits scfile=/scratch/kocevski/36440/ft2_4FGL_J2156.3-0036_daily_bin1398.fits outfile=/scratch/kocevski/36440/cmap_601689601_601948801_4FGL_J2156.3-0036_daily_bin1398.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36440/ft1_filtered_4FGL_J2156.3-0036_daily_bin1398.fits scfile=/scratch/kocevski/36440/ft2_4FGL_J2156.3-0036_daily_bin1398.fits outfile=/scratch/kocevski/36440/cmap_HighResolution_601689601_601948801_4FGL_J2156.3-0036_daily_bin1398.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/36440/ft1_filtered_4FGL_J2156.3-0036_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/36440/ft2_4FGL_J2156.3-0036_daily_bin1398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/36440/Model_4FGL_J2156.3-0036_daily_bin1398.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/36440/ft1_filtered_4FGL_J2156.3-0036_daily_bin1398.fits.....................!
real 60.77
user 59.26
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.918       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14740E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.034       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7249       1.0000         .10000E-03   10000.    
    11 'norm      '    15.921       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12437E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.081       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12284E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.699       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8655       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9108       1.0000         .10000E-03   10000.    
    21 'norm      '    7.0975       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.274       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .55106       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0478       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=   5917.470     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     3185 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.499        .96908E-05** at limit **
   2  Prefactor     .10000E-03    12.884       -.10713E-05** at limit **
   3  Prefactor     28.840        42.175       -.80634E-04   -.53354E-04
   4  Prefactor     .10000E-03    2.2678       -.79265E-07** at limit **
   5  Prefactor     .10000E-03    .77461        .68270E-06** at limit **
   6  Prefactor     .10001E-03    87.097        .25166E-04** at limit **
   7  Prefactor     .10000E-03    28.652       -.11612E-04** at limit **
   8  Prefactor     .10000E-03    34.896        .61112E-06** at limit **
   9  Prefactor     43.026        54.574       -.93095E-05   -.38415E-04
  10  norm          2.7250        2.2934       -.59458E-06   -.38501E-03
  11  norm          15.920        24.136       -.23581E-05   -.50058E-04
  12  Prefactor     .10000E-03    6.7078        .11283E-06** at limit **
  13  Prefactor     .10000E-03    2.8116       -.36237E-06** at limit **
  14  Prefactor     10.074        13.516       -.13646E-05   -.80315E-04
  15  Prefactor     .10000E-03    12.849        .14528E-05** at limit **
  16  Prefactor     18.469        20.707       -.29154E-05   -.10887E-04
  17  Prefactor     .10000E-03    13.987       -.12926E-05** at limit **
  18  Prefactor     43.689        35.132       -.94077E-05   -.35775E-04
  19  Prefactor     7.8590        15.230       -.50059E-05   -.91016E-04
  20  Prefactor     5.9143        7.0954       -.15318E-06   -.26731E-03
  21  norm          7.0982        5.4934        .33456E-05   -.52177E-04
  22  Prefactor     34.200        106.42       -.11640E-03   -.34716E-05
  23  Normalizat    .55066        .24917        .26501E-04   -.41605E-04
  24  Prefactor     1.0480        .12983       -.32742E-06   -.17801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8402
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.0257
  norm       = 2.72496
  norm       = 15.9199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0742
  Prefactor  = 0.0001
  Prefactor  = 18.4692
  Prefactor  = 0.0001
  Prefactor  = 43.6889
  Prefactor  = 7.85903
  Prefactor  = 5.91431
  norm       = 7.09822
  Prefactor  = 34.2002
  Normalizat = 0.550656
  Prefactor  = 1.04801
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.470     FROM HESSE     STATUS=OK           395 CALLS     3580 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.840        42.233        .74502E-04   -1.4633    
   4  Prefactor     .10000E-03    2.2745        .11312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .77988        .66131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    89.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.026        54.314        .61111E-04   -1.4395    
  10  norm          2.7250        2.2810        .10063E-03   -1.5378    
  11  norm          15.920        24.016        .10038E-03   -1.4910    
  12  Prefactor     .10000E-03    6.7578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8280        .12594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.074        13.483        .12620E-03   -1.5073    
  15  Prefactor     .10000E-03    12.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.469        20.648        .93192E-04   -1.4848    
  17  Prefactor     .10000E-03    14.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.689        35.126        .60646E-04   -1.4385    
  19  Prefactor     7.8590        15.058        .14297E-03   -1.5147    
  20  Prefactor     5.9143        7.0021        .16517E-03   -1.5222    
  21  norm          7.0982        5.4824        .14493E-03   -1.5175    
  22  Prefactor     34.200        106.18        .68450E-04   -1.4538    
  23  Normalizat    .55066        .27581        .40399E-03   -1.1012    
  24  Prefactor     1.0480        .14715        .16743E-03   -.91146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88617e-09
Minuit parameter uncertainties:
  1  0.00014266
  2  5.71434e-05
  3  42.2765
  4  1.19038e-05
  5  6.08522e-05
  6  0.00178967
  7  0.000339837
  8  2.84197e-06
  9  54.3766
  10  2.28107
  11  24.0306
  12  5.49441e-05
  13  4.46837e-05
  14  13.4867
  15  5.46167e-05
  16  20.656
  17  5.00542e-05
  18  35.1431
  19  15.0656
  20  7.0031
  21  5.48275
  22  106.772
  23  0.276497
  24  0.14721
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  1.007e+01  1.349e+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:  1.048e+00  1.472e-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.507e-01  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/36440/likelihoodResults_601689601_601948801_4FGL_J2156.3-0036_daily_bin1398.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) = 5916.50511727
delta logL = 0.965325056621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5916.48845939
delta logL = 0.981982932803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31533       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3606       1.0000          .0000       10.000    
     3 'Normalizat'    .43044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0962       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=   5916.488     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      334 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30909        3.0492        .62978E-02    .16805E-02
   2  Index         4.3698        2.0978        .95328E-01    .19208E-03
   3  Normalizat    .43019        .56367E-01    .10250        .52007E-04
   4  Prefactor     1.0963        .31497E-01    .37733E-01    .38980E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.309092
  Index      = 4.36981
  Normalizat = 0.43019
  Prefactor  = 1.09633
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.488     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      369 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30909        6.8590        .28554E-03   -1.5597    
   2  Index         4.3698        3.5631        .35689E-02   -.12637    
   3  Normalizat    .43019        .20592        .45418E-03   -1.1577    
   4  Prefactor     1.0963        .11497        .16403E-03   -.89584    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.4405e-12
Minuit parameter uncertainties:
  1  2.912
  2  3.97517
  3  0.206285
  4  0.114997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36440': 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) = 5916.48845473
delta logL = 0.981987592146

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  3.091e-01  2.912e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  4.370e+00  3.975e+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:  1.096e+00  1.150e-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:  4.302e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 329.080 -0.604
Photon Index (Free Index): 4.37 +/- 3.98
Photon Flux (Free Index): 1.16e-07 +/- 7.78e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.27e-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/36440/cmap_HighResolution_601689601_601948801_4FGL_J2156.3-0036_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='9.82e-01', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-27 21:16:22.537267', photon_index_error2='3.98', photon_index2='4.37', ts='0.77', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.27e-05', EG='0.55', time_epoch_completed='1632802582.54', return_code='0', job_id='36440', GAL2='1.10', EG2='0.43', return_code2='102', photon_flux_error2='7.78e-08', ts2='2.98', photon_index='2.25' WHERE bin_id='1398' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:16:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 36440: <4FGL_J2156.3-0036_daily_bin1398> in cluster <slac> Done

Job <4FGL_J2156.3-0036_daily_bin1398> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 21:00:49 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 21:01:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 21:01:23 2021
Terminated at Mon Sep 27 21:16:23 2021
Results reported at Mon Sep 27 21:16:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin1398 329.08 -0.6039 601689601 601948801 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 :                                   690.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            934 sec.

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

