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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin441
RA = 179.164, Dec = 6.6728
tmin = 353635201, tmax = 353894401
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='188072', job_status='RUN', time_executed='2021-09-04 17:08:57.129095', time_epoch_executed='1630800537.13' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188072

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188072/ft1_4FGL_J1156.6+0640_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188072/ft2_4FGL_J1156.6+0640_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188072/ft1_4FGL_J1156.6+0640_daily_bin441.fits outfile=/scratch/kocevski/188072/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin441.fits ra=179.164 dec=6.6728 rad=12.0 tmin=353635201.0 tmax=353894401.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.59
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/188072/ft2_4FGL_J1156.6+0640_daily_bin441.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/188072/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin441.fits evtable="EVENTS" outfile="/scratch/kocevski/188072/ft1_filtered_4FGL_J1156.6+0640_daily_bin441.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188072/ft1_filtered_4FGL_J1156.6+0640_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/188072/ft2_4FGL_J1156.6+0640_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/188072/ltcube_353635201_353894401_4FGL_J1156.6+0640_daily_bin441.fits outfile=/scratch/kocevski/188072/expmap_353635201_353894401_4FGL_J1156.6+0640_daily_bin441.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/188072/ltcube_353635201_353894401_4FGL_J1156.6+0640_daily_bin441.fits
.....................!
real 193.09
user 187.36
sys 4.84

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/188072/ft1_filtered_4FGL_J1156.6+0640_daily_bin441.fits scfile=/scratch/kocevski/188072/ft2_4FGL_J1156.6+0640_daily_bin441.fits outfile=/scratch/kocevski/188072/cmap_353635201_353894401_4FGL_J1156.6+0640_daily_bin441.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188072/ft1_filtered_4FGL_J1156.6+0640_daily_bin441.fits scfile=/scratch/kocevski/188072/ft2_4FGL_J1156.6+0640_daily_bin441.fits outfile=/scratch/kocevski/188072/cmap_HighResolution_353635201_353894401_4FGL_J1156.6+0640_daily_bin441.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/188072/ft1_filtered_4FGL_J1156.6+0640_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/188072/ft2_4FGL_J1156.6+0640_daily_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/188072/Model_4FGL_J1156.6+0640_daily_bin441.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/188072/ft1_filtered_4FGL_J1156.6+0640_daily_bin441.fits....................!
real 58.80
user 57.47
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    134.64       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61882       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.110       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9455       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.291       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.510       1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .65928       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.589       1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.734       1.0000         .10000E-03   10000.    
    24 'norm      '    4.4589       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1617       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84167       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=   6525.418     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3114 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3088        .28096E-06** at limit **
   2  Prefactor     2.3624        184.88        .47636E-05    .98994E-05
   3  Prefactor     1.5480        2.0199        .30156E-06    .38376E-03
   4  Prefactor     .10000E-03    18.618       -.51840E-06** at limit **
   5  Prefactor     134.61        105.15        .55159E-06   -.45423E-04
   6  Prefactor     .59749        8.5191        .29893E-05   -.37684E-03
   7  Prefactor     21.265        10.419        .45041E-07   -.44622E-05
   8  Prefactor     27.439        19.621        .41282E-06   -.67782E-04
   9  Prefactor     .10000E-03    24.298       -.67410E-07** at limit **
  10  Prefactor     47.184        50.303        .79722E-06    .29490E-04
  11  Prefactor     .10000E-03    12.225       -.12955E-06** at limit **
  12  Prefactor     .10000E-03    2.1275       -.17935E-06** at limit **
  13  Prefactor     3.9448        3.3263        .18086E-06    .11779E-03
  14  Prefactor     17.287        29.294        .20600E-06   -.15666E-04
  15  Prefactor     14.511        9.5900       -.51821E-07    .73209E-05
  16  norm          .10000E-03    1.0009       -.10210E-06** at limit **
  17  norm          .10000E-03    1.8647        .65116E-06** at limit **
  18  Prefactor     .10000E-03    17.171       -.70118E-07** at limit **
  19  norm          21.087        25.467       -.29781E-06    .21376E-04
  20  Prefactor     .10000E-03    45.840        .36680E-07** at limit **
  21  norm          .65868        .51591        .20643E-06    .16893E-02
  22  Prefactor     16.590        15.772        .12846E-06    .14978E-04
  23  Prefactor     46.725        36.890        .11836E-06   -.16014E-04
  24  norm          4.4592        1.9893        .12476E-07    .78894E-05
  25  Normalizat    1.1618        .22579       -.53626E-05   -.26207E-04
  26  Prefactor     .84161        .17877        .47373E-05    .55977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.36239
  Prefactor  = 1.54801
  Prefactor  = 0.0001
  Prefactor  = 134.614
  Prefactor  = 0.597489
  Prefactor  = 21.2648
  Prefactor  = 27.4387
  Prefactor  = 0.0001
  Prefactor  = 47.1837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94483
  Prefactor  = 17.2867
  Prefactor  = 14.5111
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.0866
  Prefactor  = 0.0001
  norm       = 0.658683
  Prefactor  = 16.5898
  Prefactor  = 46.7254
  norm       = 4.45921
  Normalizat = 1.16178
  Prefactor  = 0.84161
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.418     FROM HESSE     STATUS=OK           466 CALLS     3580 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3164        .14361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3624        183.19        .26829E-03   -1.5401    
   3  Prefactor     1.5480        2.0079        .12522E-03   -1.5459    
   4  Prefactor     .10000E-03    18.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     134.61        105.04        .17353E-03   -1.3382    
   6  Prefactor     .59749        17.066        .37921E-02   -1.5553    
   7  Prefactor     21.265        10.417        .86854E-04   -1.4785    
   8  Prefactor     27.439        19.611        .76485E-04   -1.4660    
   9  Prefactor     .10000E-03    24.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.184        50.368        .58419E-04   -1.4333    
  11  Prefactor     .10000E-03    12.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1588        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9448        3.3223        .13047E-03   -1.5311    
  14  Prefactor     17.287        29.224        .96317E-04   -1.4876    
  15  Prefactor     14.511        9.5377        .10515E-03   -1.4946    
  16  norm          .10000E-03    1.0126        .78672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9110        .10792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.087        25.508        .87255E-04   -1.4789    
  20  Prefactor     .10000E-03    45.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .65868        .50366        .47604E-03   -1.5546    
  22  Prefactor     16.590        15.766        .98335E-04   -1.4893    
  23  Prefactor     46.725        36.886        .58653E-04   -1.4340    
  24  norm          4.4592        1.9828        .72208E-04   -1.5286    
  25  Normalizat    1.1618        .23723        .26614E-03   -.87792    
  26  Prefactor     .84161        .18859        .26170E-03   -.98212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10586e-10
Minuit parameter uncertainties:
  1  1.69743e-05
  2  41.7382
  3  2.00794
  4  8.84307e-05
  5  105.191
  6  6.38797
  7  10.4181
  8  19.6155
  9  3.38285e-05
  10  50.4134
  11  1.59404e-05
  12  7.5931e-06
  13  3.32245
  14  29.2478
  15  9.53868
  16  4.60093e-06
  17  2.75983e-05
  18  1.2162e-06
  19  25.5213
  20  3.82322e-05
  21  0.503666
  22  15.7697
  23  36.904
  24  1.98284
  25  0.237445
  26  0.188731
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.346e+02  1.052e+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.416e-01  1.887e-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.162e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/188072/likelihoodResults_353635201_353894401_4FGL_J1156.6+0640_daily_bin441.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) = 6525.1552366
delta logL = 0.262892309589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6525.15040242
delta logL = 0.267726491921

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.171       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8617       1.0000          .0000       10.000    
     3 'Normalizat'    1.1219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86403       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=   6525.150     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      300 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.185        130.22        .46620E-04    .80717E-04
   2  Index         2.8613        .99441        .51795E-02    .10242E-03
   3  Normalizat    1.1221        .22962        .27002E-03    .10134E-03
   4  Prefactor     .86388        .19096        .25867E-03    .20433E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.1845
  Index      = 2.86132
  Normalizat = 1.12205
  Prefactor  = 0.86388
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.150     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.185        100.32        .93240E-05   -1.3983    
   2  Index         2.8613        .76621        .20718E-03   -.44199    
   3  Normalizat    1.1221        .22753        .10801E-04   -.89047    
   4  Prefactor     .86388        .18982        .10347E-04   -.97415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.145e-10
Minuit parameter uncertainties:
  1  100.551
  2  0.769929
  3  0.22773
  4  0.189967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188072': 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) = 6525.15040174
delta logL = 0.267727170205

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  7.418e+01  1.006e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.861e+00  7.699e-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.639e-01  1.900e-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.122e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.58
Ra Dec: 179.164 6.673
Photon Index (Free Index): 2.86 +/- 0.77
Photon Flux (Free Index): 7.86e-08 +/- 6.22e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.11e-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/188072/cmap_HighResolution_353635201_353894401_4FGL_J1156.6+0640_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='1.69e-05', photon_flux_error='3.72e-08', dlogl='2.68e-01', energy_flux='1.75e-05', photon_flux2='7.86e-08', job_status='DONE', time_completed='2021-09-04 17:21:55.605818', photon_index_error2='0.77', photon_index2='2.86', ts='3.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.11e-05', EG='1.16', time_epoch_completed='1630801315.61', return_code='0', job_id='188072', GAL2='0.86', EG2='1.12', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.22e-08', ts2='3.58', photon_index='2.32' WHERE bin_id='441' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 188072: <4FGL_J1156.6+0640_daily_bin441> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin441> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:31 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:32 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:06:32 2021
Terminated at Sat Sep  4 17:21:57 2021
Results reported at Sat Sep  4 17:21:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin441 179.164 6.6728 353635201 353894401 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

