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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin931
RA = 179.164, Dec = 6.6728
tmin = 480643201, tmax = 480902401
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='191319', job_status='RUN', time_executed='2021-09-04 17:19:36.975864', time_epoch_executed='1630801176.98' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191319/ft1_4FGL_J1156.6+0640_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191319/ft1_4FGL_J1156.6+0640_daily_bin931.fits outfile=/scratch/kocevski/191319/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin931.fits ra=179.164 dec=6.6728 rad=12.0 tmin=480643201.0 tmax=480902401.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.56
user 3.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.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/191319/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin931.fits evtable="EVENTS" outfile="/scratch/kocevski/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.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.53
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/191319/ltcube_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.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/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits
.....................!
real 12.00
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/191319/ltcube_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.fits outfile=/scratch/kocevski/191319/expmap_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.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/191319/ltcube_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.fits
.....................!
real 190.07
user 185.17
sys 4.54

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1156.6+0640 @ 179.164 6.6728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.fits scfile=/scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits outfile=/scratch/kocevski/191319/cmap_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.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=179.164 yref=6.6728 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.60
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.fits scfile=/scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits outfile=/scratch/kocevski/191319/cmap_HighResolution_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.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=179.164 yref=6.6728 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.61
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191319/Model_4FGL_J1156.6+0640_daily_bin931.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/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.fits....................!
real 57.65
user 55.50
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.fits', '/scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits', expMap='/scratch/kocevski/191319/expmap_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.fits', expCube='/scratch/kocevski/191319/ltcube_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191319/Model_4FGL_J1156.6+0640_daily_bin931.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1156.6+0640'

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.059e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191319/ft1_filtered_4FGL_J1156.6+0640_daily_bin931.fits
Spacecraft file(s): /scratch/kocevski/191319/ft2_4FGL_J1156.6+0640_daily_bin931.fits
Exposure map: /scratch/kocevski/191319/expmap_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.fits
Exposure cube: /scratch/kocevski/191319/ltcube_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191319/Model_4FGL_J1156.6+0640_daily_bin931.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) = 6126.67897839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0489       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .76833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4017       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0481       1.0000         .10000E-03   10000.    
     5 'Prefactor '    112.06       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1656       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5694       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2964       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5093       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3210       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12627E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9273       1.0000         .10000E-03   10000.    
    16 'norm      '    .22576       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0035       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11840E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .60322E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0277       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .44774       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.1724       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1943       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6126.666     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3116 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0480        8.8443       -.72698E-08    .96594E-04
   2  Prefactor     .78875        162.64       -.24179E-04    .17198E-03
   3  Prefactor     1.4016        1.5438       -.16763E-06   -.22859E-03
   4  Prefactor     4.0438        39.156       -.26696E-05   -.30792E-04
   5  Prefactor     112.26        102.60       -.19975E-05   -.79069E-04
   6  Prefactor     5.1597        10.626       -.16489E-05   -.21911E-03
   7  Prefactor     8.5754        6.8334       -.18170E-06    .80409E-05
   8  Prefactor     3.2968        21.880       -.91726E-06   -.46689E-06
   9  Prefactor     .10000E-03    61.672        .13919E-05** at limit **
  10  Prefactor     .10000E-03    11.306       -.76594E-06** at limit **
  11  Prefactor     .10000E-03    20.672        .63094E-06** at limit **
  12  Prefactor     4.5102        5.4547       -.17521E-06   -.20699E-03
  13  Prefactor     3.3204        4.9426       -.10442E-05   -.52778E-03
  14  Prefactor     .10000E-03    62.135       -.77419E-07** at limit **
  15  Prefactor     6.9293        11.005        .96500E-07    .66321E-03
  16  norm          .22578        2.7007        .93581E-06    .14533E-02
  17  norm          3.0044        3.0495       -.52723E-06   -.43054E-03
  18  Prefactor     .10000E-03    71.722        .89023E-06** at limit **
  19  norm          .10000E-03    13.389        .19580E-06** at limit **
  20  Prefactor     .10001E-03    678.55       -.50946E-05** at limit **
  21  norm          2.0277        .69284       -.25496E-07    .11629E-02
  22  Prefactor     .51093        8.6351        .11583E-05    .68402E-04
  23  Prefactor     .10000E-03    30.052        .72826E-06** at limit **
  24  norm          4.1724        2.0621       -.15255E-06   -.21602E-03
  25  Normalizat    1.1944        .22134        .19642E-05    .36234E-03
  26  Prefactor     .87348        .17531        .40890E-06    .73081E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.04804
  Prefactor  = 0.78875
  Prefactor  = 1.4016
  Prefactor  = 4.04377
  Prefactor  = 112.257
  Prefactor  = 5.15975
  Prefactor  = 8.57536
  Prefactor  = 3.29683
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51018
  Prefactor  = 3.32041
  Prefactor  = 0.0001
  Prefactor  = 6.92929
  norm       = 0.225785
  norm       = 3.00439
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100012
  norm       = 2.02768
  Prefactor  = 0.510931
  Prefactor  = 0.0001
  norm       = 4.17245
  Normalizat = 1.19444
  Prefactor  = 0.873484
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.666     FROM HESSE     STATUS=OK           466 CALLS     3582 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0480        8.8286        .14132E-03   -1.5141    
   2  Prefactor     .78875        199.12        .65184E-02   -1.5530    
   3  Prefactor     1.4016        1.5387        .98950E-04   -1.5471    
   4  Prefactor     4.0438        39.476        .20041E-03   -1.5306    
   5  Prefactor     112.26        102.92        .19000E-03   -1.3585    
   6  Prefactor     5.1597        10.667        .17688E-03   -1.5254    
   7  Prefactor     8.5754        6.8273        .13694E-03   -1.5122    
   8  Prefactor     3.2968        21.710        .22299E-03   -1.5345    
   9  Prefactor     .10000E-03    61.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5102        5.3904        .17339E-03   -1.5283    
  13  Prefactor     3.3204        4.9253        .18285E-03   -1.5344    
  14  Prefactor     .10000E-03    63.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9293        11.320        .15243E-03   -1.5181    
  16  norm          .22578        4.5390        .18292E-02   -1.5613    
  17  norm          3.0044        3.0495        .12989E-03   -1.5361    
  18  Prefactor     .10000E-03    72.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    689.65        .18932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0277        .68784        .34880E-04   -1.5423    
  22  Prefactor     .51093        44.099        .42885E-02   -1.5565    
  23  Prefactor     .10000E-03    30.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.1724        2.0594        .74943E-04   -1.5299    
  25  Normalizat    1.1944        .24204        .26693E-03   -.86775    
  26  Prefactor     .87348        .19808        .25960E-03   -.97074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55728e-09
Minuit parameter uncertainties:
  1  8.83004
  2  25.1479
  3  1.53872
  4  25.2907
  5  103.084
  6  10.6707
  7  6.82797
  8  16.9289
  9  0.000492242
  10  0.000104471
  11  0.000101078
  12  5.39102
  13  4.92594
  14  2.7849e-05
  15  11.3237
  16  2.02441
  17  3.04962
  18  0.000210659
  19  4.46459e-05
  20  0.00582569
  21  0.687845
  22  9.49983
  23  0.000151376
  24  2.05941
  25  0.24227
  26  0.198245
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.123e+02  1.031e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.735e-01  1.982e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.194e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.34e-05

TS (Fixed Index): 1.83
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191319/likelihoodResults_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.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) = 6126.66477671
delta logL = 0.00148901904868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6126.66291308
delta logL = 0.00335264827299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.23       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2534       1.0000          .0000       10.000    
     3 'Normalizat'    1.1971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   6126.663     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      270 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.23        165.94        .36552E-04   -.61583E-05
   2  Index         2.2533        .84296        .82302E-02    .36796E-03
   3  Normalizat    1.1973        .23340        .26665E-03   -.29845E-05
   4  Prefactor     .87157        .19657        .25984E-03    .11201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.228
  Index      = 2.2533
  Normalizat = 1.19727
  Prefactor  = 0.871566
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.663     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.23        154.55        .73104E-05   -1.3501    
   2  Index         2.2533        .78490        .16460E-02   -.58157    
   3  Normalizat    1.1973        .23319        .10666E-04   -.86687    
   4  Prefactor     .87157        .19645        .10394E-04   -.97142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47502e-12
Minuit parameter uncertainties:
  1  155.065
  2  0.789593
  3  0.233396
  4  0.196613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191319': 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) = 6126.66291263
delta logL = 0.00335309670481

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.212e+02  1.551e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.253e+00  7.896e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.716e-01  1.966e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.197e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 179.164 6.673
Photon Index (Free Index): 2.25 +/- 0.79
Photon Flux (Free Index): 3.80e-08 +/- 4.07e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.86e-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/191319/cmap_HighResolution_480643201_480902401_4FGL_J1156.6+0640_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='1.55e-05', photon_flux_error='3.65e-08', dlogl='3.35e-03', energy_flux='1.46e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-04 17:32:12.711098', photon_index_error2='0.79', photon_index2='2.25', ts='1.83', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.86e-05', EG='1.19', time_epoch_completed='1630801932.71', return_code='0', job_id='191319', GAL2='0.87', EG2='1.20', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.07e-08', ts2='1.83', photon_index='2.32' WHERE bin_id='931' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:32:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 191319: <4FGL_J1156.6+0640_daily_bin931> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin931> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:16:27 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:16:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:16:28 2021
Terminated at Sat Sep  4 17:32:13 2021
Results reported at Sat Sep  4 17:32:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin931 179.164 6.6728 480643201 480902401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1156.6+0640 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

