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


Performing analysis on: 4FGL_J2156.3-0036_daily_bin296
RA = 329.08, Dec = -0.6039
tmin = 316051201, tmax = 316310401
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='31575', job_status='RUN', time_executed='2021-09-27 20:48:25.047126', time_epoch_executed='1632800905.05' WHERE source_name='4FGL J2156.3-0036' and cadence='daily' and bin_id='296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31575/ft1_4FGL_J2156.3-0036_daily_bin296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31575/ft2_4FGL_J2156.3-0036_daily_bin296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31575/ft1_4FGL_J2156.3-0036_daily_bin296.fits outfile=/scratch/kocevski/31575/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin296.fits ra=329.08 dec=-0.6039 rad=12.0 tmin=316051201.0 tmax=316310401.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.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31575/ft2_4FGL_J2156.3-0036_daily_bin296.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/31575/ft1_filteredMKT_4FGL_J2156.3-0036_daily_bin296.fits evtable="EVENTS" outfile="/scratch/kocevski/31575/ft1_filtered_4FGL_J2156.3-0036_daily_bin296.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31575/ft1_filtered_4FGL_J2156.3-0036_daily_bin296.fits" evtable="EVENTS" scfile=/scratch/kocevski/31575/ft2_4FGL_J2156.3-0036_daily_bin296.fits sctable="SC_DATA" outfile=/scratch/kocevski/31575/ltcube_316051201_316310401_4FGL_J2156.3-0036_daily_bin296.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/31575/ft2_4FGL_J2156.3-0036_daily_bin296.fits
.....................!
real 13.43
user 13.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31575/ft1_filtered_4FGL_J2156.3-0036_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/31575/ft2_4FGL_J2156.3-0036_daily_bin296.fits sctable="SC_DATA" expcube=/scratch/kocevski/31575/ltcube_316051201_316310401_4FGL_J2156.3-0036_daily_bin296.fits outfile=/scratch/kocevski/31575/expmap_316051201_316310401_4FGL_J2156.3-0036_daily_bin296.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/31575/ltcube_316051201_316310401_4FGL_J2156.3-0036_daily_bin296.fits
.....................!
real 193.18
user 186.44
sys 5.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/31575/ft1_filtered_4FGL_J2156.3-0036_daily_bin296.fits scfile=/scratch/kocevski/31575/ft2_4FGL_J2156.3-0036_daily_bin296.fits outfile=/scratch/kocevski/31575/cmap_316051201_316310401_4FGL_J2156.3-0036_daily_bin296.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31575/ft1_filtered_4FGL_J2156.3-0036_daily_bin296.fits scfile=/scratch/kocevski/31575/ft2_4FGL_J2156.3-0036_daily_bin296.fits outfile=/scratch/kocevski/31575/cmap_HighResolution_316051201_316310401_4FGL_J2156.3-0036_daily_bin296.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.469       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9651       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5540       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12133E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    80.248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.9506       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43519E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.014       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8293       1.0000         .10000E-03   10000.    
    21 'norm      '    4.4912       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1112       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=   6009.376     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2808 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.471        66.712        .10669E-05   -.91460E-05
   2  Prefactor     5.9592        34.969       -.15691E-05    .53162E-05
   3  Prefactor     .10000E-03    126.54        .46643E-06** at limit **
   4  Prefactor     16.140        8.6759       -.90975E-07   -.43452E-04
   5  Prefactor     1.5555        2.3969       -.24615E-06   -.91899E-04
   6  Prefactor     .10000E-03    215.23        .61904E-05** at limit **
   7  Prefactor     .10000E-03    124.56        .68275E-07** at limit **
   8  Prefactor     80.251        132.65        .48043E-06   -.33242E-05
   9  Prefactor     .10000E-03    53.004        .14035E-07** at limit **
  10  norm          7.9501        3.9981       -.19349E-06    .89824E-04
  11  norm          .10000E-03    7.1642        .39600E-06** at limit **
  12  Prefactor     .10000E-03    42.113        .34550E-05** at limit **
  13  Prefactor     .10000E-03    3.8728       -.57363E-07** at limit **
  14  Prefactor     14.014        13.952        .11644E-06    .31638E-04
  15  Prefactor     .10000E-03    6.6341       -.41661E-07** at limit **
  16  Prefactor     .10000E-03    7.5147       -.57361E-06** at limit **
  17  Prefactor     .10000E-03    7.7605        .32982E-06** at limit **
  18  Prefactor     .10000E-03    36.119       -.54727E-06** at limit **
  19  Prefactor     24.129        14.574       -.18606E-06    .19396E-04
  20  Prefactor     7.8286        5.3917       -.20654E-06    .20461E-04
  21  norm          4.4902        4.8467       -.78304E-06    .40889E-04
  22  Prefactor     .10000E-03    55.382        .11354E-05** at limit **
  23  Normalizat    .76745        .25564        .21728E-05    .46236E-04
  24  Prefactor     1.1112        .13808        .75206E-06    .87940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.4712
  Prefactor  = 5.95919
  Prefactor  = 0.0001
  Prefactor  = 16.1395
  Prefactor  = 1.55548
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 80.2513
  Prefactor  = 0.0001
  norm       = 7.9501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.1294
  Prefactor  = 7.82863
  norm       = 4.49025
  Prefactor  = 0.0001
  Normalizat = 0.767447
  Prefactor  = 1.11121
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.376     FROM HESSE     STATUS=OK           395 CALLS     3203 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.471        66.605        .60806E-04   -1.4388    
   2  Prefactor     5.9592        35.056        .16441E-03   -1.5220    
   3  Prefactor     .10000E-03    127.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.140        8.6707        .99694E-04   -1.4904    
   5  Prefactor     1.5555        2.3718        .14219E-03   -1.5459    
   6  Prefactor     .10000E-03    214.91        .41260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    126.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     80.251        134.46        .44833E-04   -1.3914    
   9  Prefactor     .10000E-03    53.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.9501        4.0467        .85563E-04   -1.5144    
  11  norm          .10000E-03    7.1580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.235        .39659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9264        .14900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.014        13.940        .10700E-03   -1.4959    
  15  Prefactor     .10000E-03    6.6441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.129        14.580        .81543E-04   -1.4725    
  20  Prefactor     7.8286        5.3844        .13880E-03   -1.5148    
  21  norm          4.4902        4.8380        .16974E-03   -1.5284    
  22  Prefactor     .10000E-03    55.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76745        .29082        .38238E-03   -1.0129    
  24  Prefactor     1.1112        .15884        .18094E-03   -.89109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05037e-11
Minuit parameter uncertainties:
  1  66.7191
  2  28.9325
  3  0.000368391
  4  8.67134
  5  2.37198
  6  0.000885778
  7  0.000385286
  8  134.975
  9  3.50635e-05
  10  4.04682
  11  2.63837e-05
  12  4.90625e-05
  13  9.41723e-06
  14  13.9434
  15  3.28934e-06
  16  2.69663e-05
  17  3.14791e-05
  18  1.23458e-05
  19  14.5826
  20  5.38468
  21  4.83842
  22  0.000192319
  23  0.291408
  24  0.158904
Done.

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

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  1.401e+01  1.394e+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.111e+00  1.589e-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.674e-01  2.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 329.080 -0.604
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.94e-05

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

Saving results to:
/scratch/kocevski/31575/likelihoodResults_316051201_316310401_4FGL_J2156.3-0036_daily_bin296.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) = 6009.11706215
delta logL = 0.258704299325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6009.08204267
delta logL = 0.293723778501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2675       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0785       1.0000          .0000       10.000    
     3 'Normalizat'    .69495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1365       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=   6009.082     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      259 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2579        85.013        .43782E-02    .34257E-03
   2  Index         3.0797        3.0595        .98285E-01    .17525E-03
   3  Normalizat    .69481        .93253E-01    .90349E-01    .26317E-04
   4  Prefactor     1.1366        .45898E-01    .36340E-01   -.10320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.25788
  Index      = 3.0797
  Normalizat = 0.694814
  Prefactor  = 1.13661
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.082     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2579        133.94        .12671E-03   -1.5249    
   2  Index         3.0797        6.5344        .49492E-02   -.39419    
   3  Normalizat    .69481        .35793        .40024E-03   -1.0410    
   4  Prefactor     1.1366        .18528        .17917E-03   -.88305    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.17198e-07
Minuit parameter uncertainties:
  1  53.2078
  2  5.12722
  3  0.359138
  4  0.185387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31575': 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) = 6009.08204171
delta logL = 0.293724740741

Extracting fit parameters...

4FGL J2156.3-0036
   Spectrum: PowerLaw
299    Prefactor:  5.258e+00  5.321e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.080e+00  5.127e+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.137e+00  1.854e-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.948e-01  3.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 329.080 -0.604
Photon Index (Free Index): 3.08 +/- 5.13
Photon Flux (Free Index): 9.96e-08 +/- 1.43e-07
Energy Flux (Free Index): 1.92e-05 +/- 2.46e-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/31575/cmap_HighResolution_316051201_316310401_4FGL_J2156.3-0036_daily_bin296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='1.92e-05', photon_flux_error='4.71e-08', dlogl='2.94e-01', energy_flux='1.95e-05', photon_flux2='9.96e-08', job_status='DONE', time_completed='2021-09-27 21:00:00.215990', photon_index_error2='5.13', photon_index2='3.08', ts='1.64', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='2.46e-05', EG='0.77', time_epoch_completed='1632801600.22', return_code='0', job_id='31575', GAL2='1.14', EG2='0.69', return_code2='102', energy_flux_error='1.94e-05', photon_flux_error2='1.43e-07', ts2='2.30', photon_index='2.25' WHERE bin_id='296' AND source_name='4FGL J2156.3-0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 21:00:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 31575: <4FGL_J2156.3-0036_daily_bin296> in cluster <slac> Done

Job <4FGL_J2156.3-0036_daily_bin296> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 20:45:18 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 20:46:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 20:46:03 2021
Terminated at Mon Sep 27 21:00:00 2021
Results reported at Mon Sep 27 21:00:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2156.3-0036_daily_bin296 329.08 -0.6039 316051201 316310401 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 :                                   688.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            882 sec.

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

