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


Performing analysis on: 4FGL_J2156.3-0036_daily_bin1592
RA = 329.08, Dec = -0.6039
tmin = 651974401, tmax = 652233601
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='37728', job_status='RUN', time_executed='2021-09-27 21:09:52.264721', time_epoch_executed='1632802192.26' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/37728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/37728/ft1_4FGL_J2156.3-0036_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/37728/ft2_4FGL_J2156.3-0036_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/37728/ft1_4FGL_J2156.3-0036_daily_bin1592.fits outfile=/scratch/kocevski/37728/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin1592.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=651974401.0 tmax=652233601.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.55
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/37728/ft1_filtered_4FGL_J2156.3-0036_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/37728/ft2_4FGL_J2156.3-0036_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/37728/ltcube_651974401_652233601_4FGL_J2156.3-0036_daily_bin1592.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/37728/ft2_4FGL_J2156.3-0036_daily_bin1592.fits
.....................!
real 14.45
user 14.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/37728/ft1_filtered_4FGL_J2156.3-0036_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/37728/ft2_4FGL_J2156.3-0036_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/37728/ltcube_651974401_652233601_4FGL_J2156.3-0036_daily_bin1592.fits outfile=/scratch/kocevski/37728/expmap_651974401_652233601_4FGL_J2156.3-0036_daily_bin1592.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/37728/ltcube_651974401_652233601_4FGL_J2156.3-0036_daily_bin1592.fits
.....................!
real 193.13
user 188.33
sys 4.39

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/37728/ft1_filtered_4FGL_J2156.3-0036_daily_bin1592.fits scfile=/scratch/kocevski/37728/ft2_4FGL_J2156.3-0036_daily_bin1592.fits outfile=/scratch/kocevski/37728/cmap_651974401_652233601_4FGL_J2156.3-0036_daily_bin1592.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/37728/ft1_filtered_4FGL_J2156.3-0036_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/37728/ft2_4FGL_J2156.3-0036_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/37728/Model_4FGL_J2156.3-0036_daily_bin1592.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/37728/ft1_filtered_4FGL_J2156.3-0036_daily_bin1592.fits.....................!
real 63.86
user 62.37
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .83955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.237       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6084       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5378       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5244       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.676       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.859       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.462       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.244       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35615E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    10.169       1.0000         .10000E-03   10000.    
    22 'Prefactor '    102.10       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76413       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94788       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=   6350.684     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2750 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4561        81.362        .13767E-04    .12080E-03
   2  Prefactor     .10000E-03    9.5694        .11851E-06** at limit **
   3  Prefactor     .10000E-03    33.244        .10724E-05** at limit **
   4  Prefactor     .10000E-03    2.3378       -.74522E-08** at limit **
   5  Prefactor     .84042        2.4198        .98504E-06   -.21310E-03
   6  Prefactor     22.239        39.955       -.13687E-05   -.21448E-04
   7  Prefactor     .10000E-03    18.792        .60857E-06** at limit **
   8  Prefactor     .10000E-03    24.541       -.17813E-05** at limit **
   9  Prefactor     7.5977        64.466       -.41642E-05   -.58848E-04
  10  norm          1.5378        1.6807        .56622E-07    .19684E-04
  11  norm          .10000E-03    10.338       -.30078E-06** at limit **
  12  Prefactor     1.5253        5.0931        .10565E-05   -.74802E-04
  13  Prefactor     32.675        10.955        .99036E-07   -.82937E-05
  14  Prefactor     4.7823        13.010        .71178E-05   -.27725E-03
  15  Prefactor     32.865        28.822        .79300E-06    .40952E-04
  16  Prefactor     62.054        25.215       -.80257E-06   -.11039E-03
  17  Prefactor     .10000E-03    32.775        .57773E-06** at limit **
  18  Prefactor     17.457        30.410       -.51274E-06   -.59521E-04
  19  Prefactor     26.236        15.588        .59874E-06    .13893E-03
  20  Prefactor     .10026E-03    2.9699       -.42940E-06** at limit **
  21  norm          10.168        5.4284        .18790E-06    .75191E-04
  22  Prefactor     102.08        108.86       -.17344E-05   -.55000E-04
  23  Normalizat    .76407        .24445       -.76763E-06   -.46753E-04
  24  Prefactor     .94789        .12262       -.67575E-06    .46169E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.45613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.840421
  Prefactor  = 22.2391
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.59772
  norm       = 1.53782
  norm       = 0.0001
  Prefactor  = 1.52533
  Prefactor  = 32.6751
  Prefactor  = 4.7823
  Prefactor  = 32.8653
  Prefactor  = 62.0542
  Prefactor  = 0.0001
  Prefactor  = 17.4571
  Prefactor  = 26.2363
  Prefactor  = 0.00010026
  norm       = 10.1681
  Prefactor  = 102.077
  Normalizat = 0.764066
  Prefactor  = 0.947895
 **********
 **   18 **HESSE 
 **********

 FCN=   6350.684     FROM HESSE     STATUS=OK           403 CALLS     3153 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4561        88.672        .13060E-03   -1.5093    
   2  Prefactor     .10000E-03    9.5802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3453        .11899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .84042        2.3455        .18975E-03   -1.5525    
   6  Prefactor     22.239        39.394        .84942E-04   -1.4764    
   7  Prefactor     .10000E-03    18.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5977        64.059        .14539E-03   -1.5157    
  10  norm          1.5378        1.6744        .10422E-03   -1.5460    
  11  norm          .10000E-03    10.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5253        5.0048        .30530E-03   -1.5461    
  13  Prefactor     32.675        10.970        .70099E-04   -1.4564    
  14  Prefactor     4.7823        13.304        .91984E-03   -1.5271    
  15  Prefactor     32.865        28.874        .69903E-04   -1.4561    
  16  Prefactor     62.054        25.199        .50936E-04   -1.4131    
  17  Prefactor     .10000E-03    33.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.457        30.439        .95844E-04   -1.4872    
  19  Prefactor     26.236        14.963        .78199E-04   -1.4683    
  20  Prefactor     .10026E-03    55.502        .24184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.168        5.4077        .12565E-03   -1.5070    
  22  Prefactor     102.08        108.20        .39791E-04   -1.3684    
  23  Normalizat    .76407        .28197        .37028E-03   -1.0142    
  24  Prefactor     .94789        .14336        .18244E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50044e-09
Minuit parameter uncertainties:
  1  58.0269
  2  6.83439e-06
  3  7.8421e-05
  4  1.32547e-06
  5  2.34577
  6  39.4397
  7  8.62225e-05
  8  0.000285182
  9  44.1864
  10  1.67448
  11  7.26142e-06
  12  5.00622
  13  10.9706
  14  13.312
  15  28.8858
  16  25.2029
  17  0.000144547
  18  30.466
  19  14.9651
  20  0.00760394
  21  5.40793
  22  108.414
  23  0.282509
  24  0.143416
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  4.782e+00  1.331e+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:  9.479e-01  1.434e-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:  7.641e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/37728/likelihoodResults_651974401_652233601_4FGL_J2156.3-0036_daily_bin1592.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) = 6350.6710354
delta logL = 0.0125217363966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6350.66792354
delta logL = 0.0156335981437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7901       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5024       1.0000          .0000       10.000    
     3 'Normalizat'    .75934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94929       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=   6350.668     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      246 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7863        14.401        .20735E-03   -.53003E-03
   2  Index         2.5026        1.6994        .10122E-01   -.16221E-03
   3  Normalizat    .75928        .25953        .37133E-03    .23936E-03
   4  Prefactor     .94931        .14204        .18230E-03    .25991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.78631
  Index      = 2.50262
  Normalizat = 0.75928
  Prefactor  = 0.949313
 **********
 **   18 **HESSE 
 **********

 FCN=   6350.668     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7863        12.375        .82940E-05   -1.5319    
   2  Index         2.5026        1.4699        .40489E-03   -.52299    
   3  Normalizat    .75928        .25921        .14853E-04   -1.0160    
   4  Prefactor     .94931        .14177        .36460E-04   -.94439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4275e-09
Minuit parameter uncertainties:
  1  12.3833
  2  1.4997
  3  0.259633
  4  0.141828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/37728': 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) = 6350.66792346
delta logL = 0.0156336781047

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  3.786e+00  1.238e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.503e+00  1.500e+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:  9.493e-01  1.418e-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:  7.593e-01  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/37728/cmap_HighResolution_651974401_652233601_4FGL_J2156.3-0036_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-27 21:21:22.122275', job_id='37728', GAL2='0.95', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632802882.12', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.56e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1592' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 37728: <4FGL_J2156.3-0036_daily_bin1592> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin1592 329.08 -0.6039 651974401 652233601 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 :                                   682.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            954 sec.

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

