/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin64
RA = 179.164, Dec = 6.6728
tmin = 255916801, tmax = 256176001
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='186481', job_status='RUN', time_executed='2021-09-04 17:01:35.069656', time_epoch_executed='1630800095.07' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186481

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186481/ft1_4FGL_J1156.6+0640_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186481/ft2_4FGL_J1156.6+0640_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186481/ft1_4FGL_J1156.6+0640_daily_bin64.fits outfile=/scratch/kocevski/186481/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin64.fits ra=179.164 dec=6.6728 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.46
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186481/ft1_filtered_4FGL_J1156.6+0640_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/186481/ft2_4FGL_J1156.6+0640_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/186481/ltcube_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.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/186481/ft2_4FGL_J1156.6+0640_daily_bin64.fits
.....................!
real 12.78
user 12.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186481/ft1_filtered_4FGL_J1156.6+0640_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/186481/ft2_4FGL_J1156.6+0640_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/186481/ltcube_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.fits outfile=/scratch/kocevski/186481/expmap_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.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/186481/ltcube_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.fits
.....................!
real 191.23
user 186.00
sys 4.79

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/186481/ft1_filtered_4FGL_J1156.6+0640_daily_bin64.fits scfile=/scratch/kocevski/186481/ft2_4FGL_J1156.6+0640_daily_bin64.fits outfile=/scratch/kocevski/186481/cmap_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186481/ft1_filtered_4FGL_J1156.6+0640_daily_bin64.fits scfile=/scratch/kocevski/186481/ft2_4FGL_J1156.6+0640_daily_bin64.fits outfile=/scratch/kocevski/186481/cmap_HighResolution_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/186481/ft1_filtered_4FGL_J1156.6+0640_daily_bin64.fits', '/scratch/kocevski/186481/ft2_4FGL_J1156.6+0640_daily_bin64.fits', expMap='/scratch/kocevski/186481/expmap_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.fits', expCube='/scratch/kocevski/186481/ltcube_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/186481/Model_4FGL_J1156.6+0640_daily_bin64.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/186481/ft1_filtered_4FGL_J1156.6+0640_daily_bin64.fits
Spacecraft file(s): /scratch/kocevski/186481/ft2_4FGL_J1156.6+0640_daily_bin64.fits
Exposure map: /scratch/kocevski/186481/expmap_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.fits
Exposure cube: /scratch/kocevski/186481/ltcube_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/186481/Model_4FGL_J1156.6+0640_daily_bin64.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) = 9792.8641971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11095E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7880       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15425E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.676       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9253       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.5015       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7514       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11678E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9841       1.0000         .10000E-03   10000.    
    24 'norm      '    5.6265       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2289       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0015       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=   9792.782     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2622 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1416       -.79752E-08** at limit **
   2  Prefactor     .10000E-03    59.220       -.30454E-04** at limit **
   3  Prefactor     3.7880        1.9584       -.53561E-07   -.76689E-05
   4  Prefactor     .10000E-03    3.2897       -.61246E-07** at limit **
   5  Prefactor     .10000E-03    142.93       -.86717E-04** at limit **
   6  Prefactor     .10000E-03    2.0507        .14493E-08** at limit **
   7  Prefactor     .10003E-03    2.8434       -.22762E-05** at limit **
   8  Prefactor     .10000E-03    4.7282       -.33724E-06** at limit **
   9  Prefactor     .10000E-03    67.090        .29799E-04** at limit **
  10  Prefactor     .10000E-03    28.141        .82035E-06** at limit **
  11  Prefactor     18.674        16.503        .16624E-07    .90544E-04
  12  Prefactor     .10000E-03    2.9244       -.43301E-07** at limit **
  13  Prefactor     .10000E-03    1.7967        .38056E-07** at limit **
  14  Prefactor     .10000E-03    4.9875       -.50088E-06** at limit **
  15  Prefactor     .10000E-03    4.7180        .49606E-06** at limit **
  16  norm          1.9254        1.7619       -.13507E-06   -.43031E-03
  17  norm          2.1596        2.2487       -.25519E-06   -.81579E-03
  18  Prefactor     .10000E-03    6.9553        .42322E-05** at limit **
  19  norm          7.4969        22.082        .78846E-06   -.24712E-04
  20  Prefactor     .10000E-03    106.58        .65574E-04** at limit **
  21  norm          2.7513        .56581        .28416E-08    .21218E-03
  22  Prefactor     .10000E-03    7.5826        .20684E-05** at limit **
  23  Prefactor     9.9768        18.256        .19093E-06   -.53194E-04
  24  norm          5.6265        1.5735       -.16900E-07   -.12738E-03
  25  Normalizat    1.2288        .15887        .56623E-06    .49466E-03
  26  Prefactor     1.0016        .13908       -.11630E-06    .47255E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78801
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92538
  norm       = 2.15964
  Prefactor  = 0.0001
  norm       = 7.4969
  Prefactor  = 0.0001
  norm       = 2.75133
  Prefactor  = 0.0001
  Prefactor  = 9.9768
  norm       = 5.62651
  Normalizat = 1.22881
  Prefactor  = 1.00158
 **********
 **   18 **HESSE 
 **********

 FCN=   9792.782     FROM HESSE     STATUS=OK           448 CALLS     3070 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1446        .14143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    59.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7880        1.9583        .95784E-04   -1.5319    
   4  Prefactor     .10000E-03    3.2901        .17529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    143.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0533        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    7.1574        .32062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    67.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.674        16.475        .92678E-04   -1.4843    
  12  Prefactor     .10000E-03    3.0306        .33013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8535        .25878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9254        1.7500        .12062E-03   -1.5430    
  17  norm          2.1596        2.2310        .13896E-03   -1.5414    
  18  Prefactor     .10000E-03    6.9588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.4969        22.076        .14643E-03   -1.5160    
  20  Prefactor     .10000E-03    106.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7513        .56567        .31338E-04   -1.5376    
  22  Prefactor     .10000E-03    7.6481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.9768        18.232        .12681E-03   -1.5076    
  24  norm          5.6265        1.5731        .63298E-04   -1.5234    
  25  Normalizat    1.2288        .18658        .26623E-03   -.85717    
  26  Prefactor     1.0016        .16338        .25656E-03   -.92677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06192e-09
Minuit parameter uncertainties:
  1  7.04212e-07
  2  0.000267801
  3  1.95833
  4  1.01301e-06
  5  0.000650239
  6  2.11583e-07
  7  0.00097733
  8  3.69085e-06
  9  7.10293e-05
  10  6.53398e-05
  11  16.4787
  12  4.3037e-06
  13  2.75533e-06
  14  7.46491e-07
  15  4.97735e-06
  16  1.75007
  17  2.23105
  18  2.01469e-06
  19  22.0998
  20  9.25321e-05
  21  0.565671
  22  1.409e-05
  23  18.2426
  24  1.5731
  25  0.186685
  26  0.163462
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  6.502e-04  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:  1.002e+00  1.635e-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.229e+00  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186481/likelihoodResults_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9792.78193898
delta logL = -3.30582934112e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9792.78190598
delta logL = -6.07469701208e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2829       1.0000          .0000       10.000    
     3 'Normalizat'    1.2288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0016       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=   9792.782     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      283 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    9998.7        .18142E-02** at limit **
   2  Index         2.3830        8.1300        .50000       -.82058E-05
   3  Normalizat    1.2288        .54355E-01    .26623E-03    .45264E-05
   4  Prefactor     1.0016        .48104E-01    .25656E-03   -.62037E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Index      = 2.38303
  Normalizat = 1.22881
  Prefactor  = 1.00158
 **********
 **   18 **HESSE 
 **********

 FCN=   9792.782     FROM HESSE     STATUS=OK            29 CALLS      312 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    319.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3830        6.1148        .50000       -.55083    
   3  Normalizat    1.2288        .18334        .10649E-04   -.85717    
   4  Prefactor     1.0016        .16230        .10262E-04   -.92677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41627e-11
Minuit parameter uncertainties:
  1  0.00457188
  2  5.40363
  3  0.183435
  4  0.16238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186481': 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) = 9792.7819058
delta logL = 1.17724994197e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  4.572e-03  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.383e+00  5.404e+00  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:  1.002e+00  1.624e-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.229e+00  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.164 6.673

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/186481/cmap_HighResolution_255916801_256176001_4FGL_J1156.6+0640_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-04 17:17:44.216851', job_id='186481', GAL2='1.00', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630801064.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='64' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:17:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 186481: <4FGL_J1156.6+0640_daily_bin64> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin64> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:17 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:19 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:01:19 2021
Terminated at Sat Sep  4 17:17:44 2021
Results reported at Sat Sep  4 17:17:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin64 179.164 6.6728 255916801 256176001 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 :                                   968.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

