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


Performing analysis on: 4FGL_J2156.3-0036_daily_bin1125
RA = 329.08, Dec = -0.6039
tmin = 530928001, tmax = 531187201
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='36017', job_status='RUN', time_executed='2021-09-27 21:03:11.977783', time_epoch_executed='1632801791.98' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36017/ft1_4FGL_J2156.3-0036_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36017/ft2_4FGL_J2156.3-0036_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36017/ft1_4FGL_J2156.3-0036_daily_bin1125.fits outfile=/scratch/kocevski/36017/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin1125.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=530928001.0 tmax=531187201.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.68
user 3.47
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36017/ft1_filtered_4FGL_J2156.3-0036_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/36017/ft2_4FGL_J2156.3-0036_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/36017/ltcube_530928001_531187201_4FGL_J2156.3-0036_daily_bin1125.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/36017/ft2_4FGL_J2156.3-0036_daily_bin1125.fits
.....................!
real 15.09
user 14.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36017/ft1_filtered_4FGL_J2156.3-0036_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/36017/ft2_4FGL_J2156.3-0036_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/36017/ltcube_530928001_531187201_4FGL_J2156.3-0036_daily_bin1125.fits outfile=/scratch/kocevski/36017/expmap_530928001_531187201_4FGL_J2156.3-0036_daily_bin1125.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/36017/ltcube_530928001_531187201_4FGL_J2156.3-0036_daily_bin1125.fits
.....................!
real 192.54
user 186.60
sys 5.31

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/36017/ft1_filtered_4FGL_J2156.3-0036_daily_bin1125.fits scfile=/scratch/kocevski/36017/ft2_4FGL_J2156.3-0036_daily_bin1125.fits outfile=/scratch/kocevski/36017/cmap_530928001_531187201_4FGL_J2156.3-0036_daily_bin1125.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36017/ft1_filtered_4FGL_J2156.3-0036_daily_bin1125.fits scfile=/scratch/kocevski/36017/ft2_4FGL_J2156.3-0036_daily_bin1125.fits outfile=/scratch/kocevski/36017/cmap_HighResolution_530928001_531187201_4FGL_J2156.3-0036_daily_bin1125.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/36017/ft1_filtered_4FGL_J2156.3-0036_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/36017/ft2_4FGL_J2156.3-0036_daily_bin1125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/36017/Model_4FGL_J2156.3-0036_daily_bin1125.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/36017/ft1_filtered_4FGL_J2156.3-0036_daily_bin1125.fits.....................!
real 66.26
user 64.79
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40683E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.435       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.008       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    34.964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7207       1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.016       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11937E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11815E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.823       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23530E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3009       1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.988       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64838       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0524       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=   6685.402     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2872 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    595.12       -.55304E-04** at limit **
   2  Prefactor     15.434        20.576       -.33758E-06    .62176E-05
   3  Prefactor     11.738        43.714       -.53725E-04   -.18735E-04
   4  Prefactor     2.0228        6.7150       -.23671E-05   -.62288E-03
   5  Prefactor     2.1514        2.7668        .28191E-05    .39450E-03
   6  Prefactor     .10000E-03    16.528       -.87854E-07** at limit **
   7  Prefactor     12.513        66.202        .69524E-05    .48075E-05
   8  Prefactor     .10000E-03    28.230        .10729E-05** at limit **
   9  Prefactor     45.009        74.409        .14494E-05    .30223E-05
  10  norm          .10000E-03    1.4921       -.11593E-06** at limit **
  11  norm          34.963        30.928        .18023E-05    .70907E-05
  12  Prefactor     .10000E-03    4.2500        .44081E-07** at limit **
  13  Prefactor     .10000E-03    7.6175       -.24858E-06** at limit **
  14  Prefactor     3.7204        10.087        .13996E-05   -.14428E-03
  15  Prefactor     47.029        28.765       -.70922E-05   -.14407E-04
  16  Prefactor     .10000E-03    72.755       -.61918E-05** at limit **
  17  Prefactor     .10000E-03    39.474        .71549E-05** at limit **
  18  Prefactor     .10000E-03    35.239       -.55111E-05** at limit **
  19  Prefactor     35.860        15.867       -.43098E-05   -.34924E-03
  20  Prefactor     .13743E-03    2.7827        .69090E-06** at limit **
  21  norm          1.3018        3.1667       -.13112E-05   -.10433E-02
  22  Prefactor     36.010        56.005        .18076E-04   -.18381E-04
  23  Normalizat    .64838        .24527        .75005E-05   -.12521E-04
  24  Prefactor     1.0524        .12398       -.25581E-06    .24670E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100054
  Prefactor  = 15.4335
  Prefactor  = 11.7382
  Prefactor  = 2.02284
  Prefactor  = 2.15144
  Prefactor  = 0.0001
  Prefactor  = 12.5128
  Prefactor  = 0.0001
  Prefactor  = 45.0088
  norm       = 0.0001
  norm       = 34.9631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72041
  Prefactor  = 47.0292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.8601
  Prefactor  = 0.000137428
  norm       = 1.30184
  Prefactor  = 36.0105
  Normalizat = 0.648376
  Prefactor  = 1.05242
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.402     FROM HESSE     STATUS=OK           405 CALLS     3277 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    615.97        .38947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.434        20.576        .10195E-03   -1.4922    
   3  Prefactor     11.738        43.312        .11728E-03   -1.5023    
   4  Prefactor     2.0228        6.7368        .29092E-03   -1.5424    
   5  Prefactor     2.1514        2.7095        .12938E-03   -1.5415    
   6  Prefactor     .10000E-03    16.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.513        65.181        .11351E-03   -1.5000    
   8  Prefactor     .10000E-03    28.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.009        74.246        .59762E-04   -1.4365    
  10  norm          .10000E-03    1.5228        .19446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          34.963        30.782        .67773E-04   -1.4525    
  12  Prefactor     .10000E-03    4.2555        .16444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7204        10.043        .20935E-03   -1.5322    
  15  Prefactor     47.029        28.752        .58477E-04   -1.4335    
  16  Prefactor     .10000E-03    75.737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.860        16.187        .66958E-04   -1.4510    
  20  Prefactor     .13743E-03    7.1593        .39824E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3018        3.1334        .21861E-03   -1.5480    
  22  Prefactor     36.010        55.850        .66804E-04   -1.4507    
  23  Normalizat    .64838        .27452        .38924E-03   -1.0597    
  24  Prefactor     1.0524        .14222        .17293E-03   -.91002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67757e-09
Minuit parameter uncertainties:
  1  0.0116848
  2  20.5856
  3  43.4285
  4  6.73927
  5  2.70962
  6  1.08449e-05
  7  57.2153
  8  1.86498e-05
  9  74.3996
  10  1.96444e-05
  11  30.7963
  12  7.17404e-06
  13  6.8828e-05
  14  10.0474
  15  28.7606
  16  7.28219e-05
  17  3.56875e-05
  18  5.13285e-05
  19  16.1889
  20  0.0327428
  21  3.13383
  22  55.9311
  23  0.275098
  24  0.142274
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  3.720e+00  1.005e+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.052e+00  1.423e-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:  6.484e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 329.080 -0.604
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36017/likelihoodResults_530928001_531187201_4FGL_J2156.3-0036_daily_bin1125.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) = 6685.30022991
delta logL = 0.101563358465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6685.29191798
delta logL = 0.10987529221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9342       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6001       1.0000          .0000       10.000    
     3 'Normalizat'    .65822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0489       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=   6685.292     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      219 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9301        10.070         .0000        .17044E-02
   2  Index         1.6035        1.0685         .0000       -.49713E-03
   3  Normalizat    .65848        .22048         .0000        .31928E-04
   4  Prefactor     1.0488        .12317         .0000        .12343E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.93008
  Index      = 1.60349
  Normalizat = 0.658484
  Prefactor  = 1.04879
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.292     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9301        10.219        .90531E-03   -1.5264    
   2  Index         1.6035        1.0867        .57519E-02   -.74681    
   3  Normalizat    .65848        .25240        .38640E-03   -1.0556    
   4  Prefactor     1.0488        .14150        .17316E-03   -.91120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21222e-11
Minuit parameter uncertainties:
  1  10.223
  2  1.10327
  3  0.252845
  4  0.141548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36017': 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) = 6685.29191143
delta logL = 0.10988184139

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  4.930e+00  1.022e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.603e+00  1.103e+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.049e+00  1.415e-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:  6.585e-01  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/36017/cmap_HighResolution_530928001_531187201_4FGL_J2156.3-0036_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-27 21:16:38.981468', job_id='36017', GAL2='1.05', fit_tolerance='1e-08', EG2='0.66', EG='0.65', time_epoch_completed='1632802598.98', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.10e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1125' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:16:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 36017: <4FGL_J2156.3-0036_daily_bin1125> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin1125 329.08 -0.6039 530928001 531187201 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            983 sec.

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

