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


Performing analysis on: 4FGL_J2156.3-0036_daily_bin1351
RA = 329.08, Dec = -0.6039
tmin = 589507201, tmax = 589766401
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='36366', job_status='RUN', time_executed='2021-09-27 21:01:26.081127', time_epoch_executed='1632801686.08' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='1351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36366/ft1_4FGL_J2156.3-0036_daily_bin1351.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36366/ft1_4FGL_J2156.3-0036_daily_bin1351.fits outfile=/scratch/kocevski/36366/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin1351.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=589507201.0 tmax=589766401.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 2.91
user 2.72
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36366/ft1_filtered_4FGL_J2156.3-0036_daily_bin1351.fits" evtable="EVENTS" scfile=/scratch/kocevski/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits sctable="SC_DATA" outfile=/scratch/kocevski/36366/ltcube_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.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/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits
.....................!
real 15.48
user 15.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36366/ft1_filtered_4FGL_J2156.3-0036_daily_bin1351.fits evtable="EVENTS" scfile=/scratch/kocevski/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits sctable="SC_DATA" expcube=/scratch/kocevski/36366/ltcube_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.fits outfile=/scratch/kocevski/36366/expmap_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.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/36366/ltcube_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.fits
.....................!
real 193.02
user 188.05
sys 4.60

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/36366/ft1_filtered_4FGL_J2156.3-0036_daily_bin1351.fits scfile=/scratch/kocevski/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits outfile=/scratch/kocevski/36366/cmap_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36366/ft1_filtered_4FGL_J2156.3-0036_daily_bin1351.fits scfile=/scratch/kocevski/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits outfile=/scratch/kocevski/36366/cmap_HighResolution_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/36366/ft1_filtered_4FGL_J2156.3-0036_daily_bin1351.fits evtable="EVENTS" scfile=/scratch/kocevski/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/36366/Model_4FGL_J2156.3-0036_daily_bin1351.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/36366/ft1_filtered_4FGL_J2156.3-0036_daily_bin1351.fits........................!
real 21.02
user 19.74
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/36366/ft1_filtered_4FGL_J2156.3-0036_daily_bin1351.fits', '/scratch/kocevski/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits', expMap='/scratch/kocevski/36366/expmap_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.fits', expCube='/scratch/kocevski/36366/ltcube_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/36366/Model_4FGL_J2156.3-0036_daily_bin1351.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/36366/ft1_filtered_4FGL_J2156.3-0036_daily_bin1351.fits
Spacecraft file(s): /scratch/kocevski/36366/ft2_4FGL_J2156.3-0036_daily_bin1351.fits
Exposure map: /scratch/kocevski/36366/expmap_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.fits
Exposure cube: /scratch/kocevski/36366/ltcube_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/36366/Model_4FGL_J2156.3-0036_daily_bin1351.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    123.74       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46978       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12932E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0912       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.788       1.0000         .10000E-03   10000.    
     7 'Prefactor '    330.36       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41286E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46264       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8995       1.0000         .10000E-03   10000.    
    11 'norm      '    .12438E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29739E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82171E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42519E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21246E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26113E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10262E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11781E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.1191       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3061       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1128       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   945.0057     FROM MIGRAD    STATUS=CONVERGED    358 CALLS      815 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    214.43        .65643E-02** at limit **
   2  Prefactor     121.72        88.535        .90459E-03    .97035E-04
   3  Prefactor     .10000E-03    172.28        .11147E-01** at limit **
   4  Prefactor     .10000E-03    28.284        .90712E-02** at limit **
   5  Prefactor     .10004E-03    20.962        .71367E-01** at limit **
   6  Prefactor     52.539        173.85        .26968E-02    .35972E-03
   7  Prefactor     320.79        415.33        .55950E-03   -.92348E-02
   8  Prefactor     .10000E-03    312.58        .92275E-02** at limit **
   9  Prefactor     .10000E-03    119.83        .11117E-01** at limit **
  10  norm          4.9240        5.5676        .45429E-02    .21630    
  11  norm          .10000E-03    25.528        .10306E-01** at limit **
  12  Prefactor     .10000E-03    12.820        .90712E-02** at limit **
  13  Prefactor     .10000E-03    264.63        .10058E-01** at limit **
  14  Prefactor     .10000E-03    30.641        .91707E-02** at limit **
  15  Prefactor     .10000E-03    17.613        .92153E-02** at limit **
  16  Prefactor     .10000E-03    58.683        .97088E-02** at limit **
  17  Prefactor     .10000E-03    118.70        .10087E-01** at limit **
  18  Prefactor     .10000E-03    45.216        .91528E-02** at limit **
  19  Prefactor     .10000E-03    151.13        .90743E-02** at limit **
  20  Prefactor     .10000E-03    74.976        .90712E-02** at limit **
  21  norm          8.1191        1.0019         .0000         .0000    
  22  Prefactor     .54479E-01    .93186E-01    .18391E-03    .11831E-02
  23  Normalizat    .10000E-01    .25704       -.13767E-04** at limit **
  24  Prefactor     1.1100        1.1395       -.66035E-05   -.13931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 121.721
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 52.5394
  Prefactor  = 320.787
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 4.92395
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.1191
  Prefactor  = 0.0544788
  Normalizat = 0.01
  Prefactor  = 1.11001
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   945.0057     FROM HESSE     STATUS=FAILED        51 CALLS      866 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    214.43        .65643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     121.72        88.535        .90459E-03   -1.3497    
   3  Prefactor     .10000E-03    172.28        .11147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    20.962        .71367E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.539        173.85        .26968E-02   -1.4257    
   7  Prefactor     320.79        415.33        .55950E-03   -1.2106    
   8  Prefactor     .10000E-03    312.58        .92275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    119.83        .11117E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9240        5.5676        .45429E-02   -1.5264    
  11  norm          .10000E-03    25.528        .10306E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    264.63        .10058E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.641        .91707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.613        .92153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    58.683        .97088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    118.70        .10087E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.216        .91528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    151.13        .90743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    74.976        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          504.32        496.17         .0000       -1.5138    
  22  Prefactor     .54479E-01    .93186E-01    .18391E-03   -1.5661    
  23  Normalizat    .10000E-01    .25704       -.13767E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.1100        1.1395       -.66035E-05   -.89147    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.49096e-10
Minuit parameter uncertainties:
  1  0.00165404
  2  88.632
  3  0.0007412
  4  0.000169826
  5  0.0017435
  6  175.572
  7  419.28
  8  0.00143648
  9  0.000576035
  10  5.56817
  11  9.95105e-06
  12  2.47114e-05
  13  0.00121415
  14  0.000201502
  15  1.75883e-05
  16  0.000191856
  17  0.00025594
  18  9.86714e-05
  19  0.000893925
  20  0.000150214
  21  1.00191
  22  0.0931861
  23  1.27881e-06
  24  1.16604
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.015e-04  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.110e+00  1.166e+00  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  1.279e-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: 5.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36366/likelihoodResults_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.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) = 945.005882093
delta logL = -0.000153736297989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 945.005729458
delta logL = -1.10131736619e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6054       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1099       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=   945.0057     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      282 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10475E-03    23.518        .13462E-01** at limit **
   2  Index         2.5046        5.5584        .50000        .14502E-04
   3  Normalizat    .10000E-01    .66454E-03    .92879E-02** at limit **
   4  Prefactor     1.1100        .77830E-02    .16102E-03    .25770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104746
  Index      = 2.50465
  Normalizat = 0.01
  Prefactor  = 1.11001
 **********
 **   18 **HESSE 
 **********

 FCN=   945.0057     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10475E-03    209.07        .14105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5046        5.7799        .50000       -.52253    
   3  Normalizat    .10000E-01    .60482E-02    .18576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1100        .23476E-01    .64408E-05   -.89147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.25977e-09
Minuit parameter uncertainties:
  1  0.0632207
  2  437.416
  3  1.7889e-08
  4  0.0234766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36366': 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) = 945.0057291
delta logL = -7.43432906347e-07

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  1.047e-04  6.322e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.505e+00  4.374e+02  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.110e+00  2.348e-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  1.789e-08  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/36366/cmap_HighResolution_589507201_589766401_4FGL_J2156.3-0036_daily_bin1351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-02', job_status='DONE', photon_flux_upper_limit='5.93e-07', time_completed='2021-09-27 21:07:06.871754', job_id='36366', GAL2='1.11', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632802026.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.11', dlogl='-7.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1351' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 36366: <4FGL_J2156.3-0036_daily_bin1351> in cluster <slac> Done

Job <4FGL_J2156.3-0036_daily_bin1351> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 21:00:43 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 21:01:10 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:10 2021
Terminated at Mon Sep 27 21:07:07 2021
Results reported at Mon Sep 27 21:07:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin1351 329.08 -0.6039 589507201 589766401 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 :                                   340.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             249.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   357 sec.
    Turnaround time :                            384 sec.

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

