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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin725
RA = 179.164, Dec = 6.6728
tmin = 427248001, tmax = 427507201
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='189726', job_status='RUN', time_executed='2021-09-04 17:11:48.892216', time_epoch_executed='1630800708.89' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189726

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189726/ft1_4FGL_J1156.6+0640_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189726/ft2_4FGL_J1156.6+0640_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189726/ft1_4FGL_J1156.6+0640_daily_bin725.fits outfile=/scratch/kocevski/189726/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin725.fits ra=179.164 dec=6.6728 rad=12.0 tmin=427248001.0 tmax=427507201.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 5.49
user 5.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189726/ft1_filtered_4FGL_J1156.6+0640_daily_bin725.fits" evtable="EVENTS" scfile=/scratch/kocevski/189726/ft2_4FGL_J1156.6+0640_daily_bin725.fits sctable="SC_DATA" outfile=/scratch/kocevski/189726/ltcube_427248001_427507201_4FGL_J1156.6+0640_daily_bin725.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/189726/ft2_4FGL_J1156.6+0640_daily_bin725.fits
.....................!
real 12.21
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189726/ft1_filtered_4FGL_J1156.6+0640_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/189726/ft2_4FGL_J1156.6+0640_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/189726/ltcube_427248001_427507201_4FGL_J1156.6+0640_daily_bin725.fits outfile=/scratch/kocevski/189726/expmap_427248001_427507201_4FGL_J1156.6+0640_daily_bin725.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/189726/ltcube_427248001_427507201_4FGL_J1156.6+0640_daily_bin725.fits
.....................!
real 191.12
user 185.96
sys 4.69

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/189726/ft1_filtered_4FGL_J1156.6+0640_daily_bin725.fits scfile=/scratch/kocevski/189726/ft2_4FGL_J1156.6+0640_daily_bin725.fits outfile=/scratch/kocevski/189726/cmap_427248001_427507201_4FGL_J1156.6+0640_daily_bin725.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189726/ft1_filtered_4FGL_J1156.6+0640_daily_bin725.fits scfile=/scratch/kocevski/189726/ft2_4FGL_J1156.6+0640_daily_bin725.fits outfile=/scratch/kocevski/189726/cmap_HighResolution_427248001_427507201_4FGL_J1156.6+0640_daily_bin725.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4529       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.8520       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2831       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.873       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .94185       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.239       1.0000         .10000E-03   10000.    
    24 'norm      '    3.2254       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6000       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .36553       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=   4616.136     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3047 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.087        12.175       -.45407E-06   -.39822E-03
   2  Prefactor     .10000E-03    18.932        .69612E-05** at limit **
   3  Prefactor     4.4530        2.4307       -.14634E-07   -.45010E-05
   4  Prefactor     .10000E-03    7.5097       -.17387E-06** at limit **
   5  Prefactor     .10000E-03    42.371        .67305E-05** at limit **
   6  Prefactor     .10000E-03    5.9837        .41631E-07** at limit **
   7  Prefactor     .10000E-03    2.5921       -.20059E-07** at limit **
   8  Prefactor     18.242        19.066       -.10433E-06    .37837E-05
   9  Prefactor     .10000E-03    37.559       -.12502E-04** at limit **
  10  Prefactor     .10000E-03    68.457        .11274E-04** at limit **
  11  Prefactor     .10000E-03    12.640       -.23635E-05** at limit **
  12  Prefactor     5.7248        4.8560        .42166E-06    .52466E-05
  13  Prefactor     .10000E-03    2.6873       -.32879E-07** at limit **
  14  Prefactor     .10000E-03    10.661        .12220E-05** at limit **
  15  Prefactor     .10000E-03    20.709       -.57116E-05** at limit **
  16  norm          9.8512        3.9305        .71925E-07    .48081E-03
  17  norm          3.2811        3.3320       -.30755E-07   -.40644E-03
  18  Prefactor     33.867        43.505       -.64016E-05    .33167E-05
  19  norm          .10000E-03    42.895        .88857E-05** at limit **
  20  Prefactor     .10000E-03    76.505       -.16209E-04** at limit **
  21  norm          .94180        .58773       -.89443E-08   -.26417E-03
  22  Prefactor     12.628        21.406        .22115E-06   -.20714E-04
  23  Prefactor     16.238        45.218        .26382E-06   -.33736E-05
  24  norm          3.2254        2.2875        .67139E-08   -.20960E-03
  25  Normalizat    1.6000        .22687        .51617E-06   -.33153E-04
  26  Prefactor     .36539        .18073       -.21539E-06   -.25549E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0871
  Prefactor  = 0.0001
  Prefactor  = 4.45301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.7248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.85124
  norm       = 3.28108
  Prefactor  = 33.867
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.941802
  Prefactor  = 12.6281
  Prefactor  = 16.2384
  norm       = 3.22539
  Normalizat = 1.60004
  Prefactor  = 0.365393
 **********
 **   18 **HESSE 
 **********

 FCN=   4616.136     FROM HESSE     STATUS=OK           456 CALLS     3503 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.087        12.249        .53358E-03   -1.4957    
   2  Prefactor     .10000E-03    18.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4530        2.4333        .75520E-04   -1.5286    
   4  Prefactor     .10000E-03    7.5133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0163        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5971        .10683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.242        19.103        .93771E-04   -1.4853    
   9  Prefactor     .10000E-03    37.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    68.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7248        4.8565        .13335E-03   -1.5229    
  13  Prefactor     .10000E-03    2.7158        .10864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.8512        3.9127        .81551E-04   -1.5080    
  17  norm          3.2811        3.3160        .11772E-03   -1.5346    
  18  Prefactor     33.867        43.449        .68852E-04   -1.4543    
  19  norm          .10000E-03    42.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    76.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .94180        .57616        .38557E-04   -1.5514    
  22  Prefactor     12.628        21.311        .11271E-03   -1.4997    
  23  Prefactor     16.238        45.083        .99388E-04   -1.4902    
  24  norm          3.2254        2.2807        .82264E-04   -1.5349    
  25  Normalizat    1.6000        .25423        .22251E-03   -.75005    
  26  Prefactor     .36539        .19861        .35171E-03   -1.1861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66592e-10
Minuit parameter uncertainties:
  1  12.2515
  2  3.55962e-06
  3  2.43333
  4  6.30063e-07
  5  3.88555e-06
  6  2.45409e-07
  7  9.01009e-07
  8  19.109
  9  1.01412e-06
  10  8.28002e-05
  11  5.12668e-08
  12  4.85685
  13  6.0957e-06
  14  4.78218e-06
  15  4.14661e-05
  16  3.91282
  17  3.31623
  18  43.4895
  19  4.129e-06
  20  7.87147e-05
  21  0.576162
  22  21.3239
  23  45.1775
  24  2.28072
  25  0.254432
  26  0.198983
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  3.886e-06  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:  3.654e-01  1.990e-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.600e+00  2.544e-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: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189726/likelihoodResults_427248001_427507201_4FGL_J1156.6+0640_daily_bin725.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) = 4616.13659773
delta logL = -0.000112137074211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4616.13648557
delta logL = 3.24580469169e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2547       1.0000          .0000       10.000    
     3 'Normalizat'    1.6000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36540       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=   4616.136     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.93        .18142E-02** at limit **
   2  Index         2.2432        5.5609        .50000        .21921E-05
   3  Normalizat    1.6000        .24259        .22251E-03   -.92099E-04
   4  Prefactor     .36539        .19592        .35171E-03   -.14387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24322
  Normalizat = 1.60005
  Prefactor  = 0.365391
 **********
 **   18 **HESSE 
 **********

 FCN=   4616.136     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2432        6.1207        .50000       -.58399    
   3  Normalizat    1.6000        .24268        .44503E-04   -.75005    
   4  Prefactor     .36539        .19599        .14068E-04   -1.1861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13345e-10
Minuit parameter uncertainties:
  1  0.000196951
  2  4.22653
  3  0.242858
  4  0.196348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189726': 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) = 4616.13648556
delta logL = 4.08181222156e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.970e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.243e+00  4.227e+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:  3.654e-01  1.963e-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.600e+00  2.429e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/189726/cmap_HighResolution_427248001_427507201_4FGL_J1156.6+0640_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-04 17:22:43.018826', job_id='189726', GAL2='0.37', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1630801363.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.37', dlogl='4.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='725' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:22:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 189726: <4FGL_J1156.6+0640_daily_bin725> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin725> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:28 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:29 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:11:29 2021
Terminated at Sat Sep  4 17:22:43 2021
Results reported at Sat Sep  4 17:22:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin725 179.164 6.6728 427248001 427507201 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 :                                   652.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            675 sec.

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

