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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin535
RA = 179.164, Dec = 6.6728
tmin = 378000001, tmax = 378259201
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='188213', job_status='RUN', time_executed='2021-09-04 17:09:09.505853', time_epoch_executed='1630800549.51' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188213

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188213/ft1_4FGL_J1156.6+0640_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188213/ft2_4FGL_J1156.6+0640_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188213/ft1_4FGL_J1156.6+0640_daily_bin535.fits outfile=/scratch/kocevski/188213/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin535.fits ra=179.164 dec=6.6728 rad=12.0 tmin=378000001.0 tmax=378259201.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.48
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188213/ft1_filtered_4FGL_J1156.6+0640_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/188213/ft2_4FGL_J1156.6+0640_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/188213/ltcube_378000001_378259201_4FGL_J1156.6+0640_daily_bin535.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/188213/ft2_4FGL_J1156.6+0640_daily_bin535.fits
.....................!
real 12.17
user 11.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188213/ft1_filtered_4FGL_J1156.6+0640_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/188213/ft2_4FGL_J1156.6+0640_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/188213/ltcube_378000001_378259201_4FGL_J1156.6+0640_daily_bin535.fits outfile=/scratch/kocevski/188213/expmap_378000001_378259201_4FGL_J1156.6+0640_daily_bin535.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/188213/ltcube_378000001_378259201_4FGL_J1156.6+0640_daily_bin535.fits
.....................!
real 193.10
user 187.36
sys 5.36

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/188213/ft1_filtered_4FGL_J1156.6+0640_daily_bin535.fits scfile=/scratch/kocevski/188213/ft2_4FGL_J1156.6+0640_daily_bin535.fits outfile=/scratch/kocevski/188213/cmap_378000001_378259201_4FGL_J1156.6+0640_daily_bin535.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188213/ft1_filtered_4FGL_J1156.6+0640_daily_bin535.fits scfile=/scratch/kocevski/188213/ft2_4FGL_J1156.6+0640_daily_bin535.fits outfile=/scratch/kocevski/188213/cmap_HighResolution_378000001_378259201_4FGL_J1156.6+0640_daily_bin535.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0791       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0002       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12243E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0247       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.495       1.0000         .10000E-03   10000.    
    19 'norm      '    20.919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9754       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5851       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    24.578       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2514       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6472.412     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     2549 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2375       -.45649E-07** at limit **
   2  Prefactor     .10006E-03    8.4390        .14868E-04** at limit **
   3  Prefactor     1.8075        1.5379        .49769E-09   -.23403E-04
   4  Prefactor     10.053        2.1373       -.20811E-05    .25418E-02
   5  Prefactor     .10120E-03    30.665       -.13203E-04** at limit **
   6  Prefactor     4.0794        1.0101       -.11813E-06    .41907E-04
   7  Prefactor     8.1387        1.0063        .79474E-07   -.11807E-03
   8  Prefactor     .10000E-03    6.5822        .28596E-06** at limit **
   9  Prefactor     .10000E-03    15.653        .14686E-04** at limit **
  10  Prefactor     43.290        1.0004        .71819E-09   -.14778E-04
  11  Prefactor     3.9918        1.7393       -.24105E-05    .10934E-02
  12  Prefactor     .10008E-03    10.076       -.77687E-05** at limit **
  13  Prefactor     .10000E-03    1.9847        .82083E-06** at limit **
  14  Prefactor     16.008        1.0031       -.36130E-07    .45655E-04
  15  Prefactor     .10001E-03    8.3329       -.89624E-05** at limit **
  16  norm          1.0266        1.5677        .28616E-06    .34906E-04
  17  norm          3.5661        3.3724       -.10603E-05   -.76222E-04
  18  Prefactor     11.490        1.4604       -.10830E-05    .14859E-02
  19  norm          20.918        1.0118       -.10426E-06    .23407E-03
  20  Prefactor     .10133E-03    24.832        .54364E-05** at limit **
  21  norm          1.9753        .67146       -.37318E-07    .48274E-03
  22  Prefactor     8.5842        1.0048       -.89595E-07    .49734E-04
  23  Prefactor     .10005E-03    10.327       -.10292E-04** at limit **
  24  norm          24.578        3.5513        .97338E-06    .11310E-02
  25  Normalizat    1.2513        .22811        .21405E-06    .60629E-04
  26  Prefactor     .83101        .19619       -.96187E-06    .20909E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100064
  Prefactor  = 1.80749
  Prefactor  = 10.0533
  Prefactor  = 0.000101203
  Prefactor  = 4.07945
  Prefactor  = 8.13871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.2897
  Prefactor  = 3.99177
  Prefactor  = 0.000100081
  Prefactor  = 0.0001
  Prefactor  = 16.0085
  Prefactor  = 0.000100015
  norm       = 1.02663
  norm       = 3.56606
  Prefactor  = 11.4895
  norm       = 20.9183
  Prefactor  = 0.000101333
  norm       = 1.97534
  Prefactor  = 8.58416
  Prefactor  = 0.000100046
  norm       = 24.5784
  Normalizat = 1.25131
  Prefactor  = 0.831006
 **********
 **   18 **HESSE 
 **********

 FCN=   6472.412     FROM HESSE     STATUS=OK           524 CALLS     3073 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    9.8658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8075        1.5463        .77703E-02   -1.5439    
   4  Prefactor     10.053        27.810        .31579E-02   -1.5074    
   5  Prefactor     .10120E-03    55.439        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0794        8.4979        .49905E-02   -1.5304    
   7  Prefactor     8.1387        7.4597        .35134E-02   -1.5137    
   8  Prefactor     .10000E-03    6.5668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.290        44.346        .15233E-02   -1.4391    
  11  Prefactor     3.9918        37.640        .50411E-02   -1.5308    
  12  Prefactor     .10008E-03    1.9087        .61332E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.008        18.349        .25026E-02   -1.4908    
  15  Prefactor     .10001E-03    8.5148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0266        1.9615        .28536E-01   -1.5505    
  17  norm          3.5661        3.4954        .53509E-02   -1.5330    
  18  Prefactor     11.490        24.556        .29540E-02   -1.5030    
  19  norm          20.918        25.633        .21893E-02   -1.4793    
  20  Prefactor     .10133E-03    48.854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9753        .67789        .73741E-02   -1.5427    
  22  Prefactor     8.5842        9.5100        .34202E-02   -1.5122    
  23  Prefactor     .10005E-03    17.906        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          24.578        3.5584        .20200E-02   -1.4716    
  25  Normalizat    1.2513        .20153        .59724E-01   -.85032    
  26  Prefactor     .83101        .16916        .44118E-01   -.98595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38794e-07
Minuit parameter uncertainties:
  1  3.04294e-06
  2  0.00159204
  3  1.54631
  4  27.8463
  5  0.0163477
  6  8.50044
  7  7.46053
  8  2.48587e-05
  9  4.94852e-05
  10  44.3795
  11  24.5354
  12  0.000787735
  13  4.72085e-06
  14  18.3558
  15  0.000705018
  16  1.96159
  17  3.49561
  18  24.5778
  19  25.6468
  20  0.0161513
  21  0.677892
  22  9.51169
  23  0.00182192
  24  3.55839
  25  0.201654
  26  0.169266
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.012e-04  1.635e-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.310e-01  1.693e-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.251e+00  2.017e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188213/likelihoodResults_378000001_378259201_4FGL_J1156.6+0640_daily_bin535.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) = 6472.41205459
delta logL = -8.57699715198e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6472.41205457
delta logL = -8.57563200043e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96337E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3183       1.0000          .0000       10.000    
     3 'Normalizat'    1.2513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83101       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.

 FCN=   6472.412     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      201 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.980        .90715E-02** at limit **
   2  Index         2.3318        6.1186        .50000       -.22004E-05
   3  Normalizat    1.2513        .19113        .59724E-01    .31179E-05
   4  Prefactor     .83101        .16654        .44119E-01    .99740E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3318
  Normalizat = 1.25131
  Prefactor  = 0.831007
 **********
 **   18 **HESSE 
 **********

 FCN=   6472.412     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.285        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3318        6.1601        .50000       -.56290    
   3  Normalizat    1.2513        .22300        .26413E-03   -.85032    
   4  Prefactor     .83101        .19436        .27479E-03   -.98595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52064e-12
Minuit parameter uncertainties:
  1  9.1285e-06
  2  4.54982
  3  0.223174
  4  0.194523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188213': 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) = 6472.4119688
delta logL = 1.76787580131e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  9.129e-06  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.332e+00  4.550e+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:  8.310e-01  1.945e-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.251e+00  2.232e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/188213/cmap_HighResolution_378000001_378259201_4FGL_J1156.6+0640_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-04 17:21:50.487113', job_id='188213', GAL2='0.83', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630801310.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='535' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 188213: <4FGL_J1156.6+0640_daily_bin535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin535 179.164 6.6728 378000001 378259201 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 :                                   760.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            909 sec.

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

