/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 180 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin75
RA = 179.164, Dec = 6.6728
tmin = 258768001, tmax = 259027201
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='186498', job_status='RUN', time_executed='2021-09-04 17:04:28.989893', time_epoch_executed='1630800268.99' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186498

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186498/ft1_4FGL_J1156.6+0640_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186498/ft2_4FGL_J1156.6+0640_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186498/ft1_4FGL_J1156.6+0640_daily_bin75.fits outfile=/scratch/kocevski/186498/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin75.fits ra=179.164 dec=6.6728 rad=12.0 tmin=258768001.0 tmax=259027201.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.14
user 0.96
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186498/ft1_filtered_4FGL_J1156.6+0640_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/186498/ft2_4FGL_J1156.6+0640_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/186498/ltcube_258768001_259027201_4FGL_J1156.6+0640_daily_bin75.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/186498/ft2_4FGL_J1156.6+0640_daily_bin75.fits
.....................!
real 8.72
user 8.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186498/ft1_filtered_4FGL_J1156.6+0640_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/186498/ft2_4FGL_J1156.6+0640_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/186498/ltcube_258768001_259027201_4FGL_J1156.6+0640_daily_bin75.fits outfile=/scratch/kocevski/186498/expmap_258768001_259027201_4FGL_J1156.6+0640_daily_bin75.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/186498/ltcube_258768001_259027201_4FGL_J1156.6+0640_daily_bin75.fits
.....................!
real 192.76
user 187.14
sys 5.26

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/186498/ft1_filtered_4FGL_J1156.6+0640_daily_bin75.fits scfile=/scratch/kocevski/186498/ft2_4FGL_J1156.6+0640_daily_bin75.fits outfile=/scratch/kocevski/186498/cmap_258768001_259027201_4FGL_J1156.6+0640_daily_bin75.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186498/ft1_filtered_4FGL_J1156.6+0640_daily_bin75.fits scfile=/scratch/kocevski/186498/ft2_4FGL_J1156.6+0640_daily_bin75.fits outfile=/scratch/kocevski/186498/cmap_HighResolution_258768001_259027201_4FGL_J1156.6+0640_daily_bin75.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.69
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    60.616       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0185       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.076       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3452       1.0000         .10000E-03   10000.    
    17 'norm      '    8.4222       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10572E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .41591E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5679       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9872       1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.899       1.0000         .10000E-03   10000.    
    24 'norm      '    .86342       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2292       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80890       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=   4076.522     FROM MIGRAD    STATUS=CONVERGED   1072 CALLS     3954 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8754        .12274E-02** at limit **
   2  Prefactor     .10000E-03    30.219        .18142E-02** at limit **
   3  Prefactor     .10000E-03    .81543        .56127E-03** at limit **
   4  Prefactor     60.607        36.388        .51535E-04   -.31502E-04
   5  Prefactor     .12081E-03    118.55        .20843    ** at limit **
   6  Prefactor     9.0198        10.637        .13346E-03    .11862E-03
   7  Prefactor     .10000E-03    7.8372        .17371E-02** at limit **
   8  Prefactor     .10000E-03    10.610        .18142E-02** at limit **
   9  Prefactor     .10000E-03    59.312        .18142E-02** at limit **
  10  Prefactor     .10000E-03    73.796        .18142E-02** at limit **
  11  Prefactor     16.497        28.255        .98596E-04   -.12165E-04
  12  Prefactor     13.076        6.6485        .11077E-03   -.94218E-04
  13  Prefactor     .10000E-03    2.0130        .87893E-03** at limit **
  14  Prefactor     .10000E-03    27.153        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.7096        .14886E-02** at limit **
  16  norm          4.3459        2.9524        .87120E-04   -.76340E-04
  17  norm          8.4198        5.2085        .10469E-03   -.21285E-03
  18  Prefactor     .10000E-03    27.105        .18142E-02** at limit **
  19  norm          .10000E-03    38.337        .18142E-02** at limit **
  20  Prefactor     .10000E-03    282.90        .21246E-02** at limit **
  21  norm          3.5678        .91479        .28557E-04   -.68574E-03
  22  Prefactor     5.9871        9.1991        .16410E-03    .33981E-04
  23  Prefactor     52.896        41.774        .55145E-04   -.11339E-04
  24  norm          .86349        1.2389        .92503E-03   -.11608E-02
  25  Normalizat    1.2290        .29136        .26072E-03   -.41738E-03
  26  Prefactor     .80891        .24393        .27099E-03   -.16672E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.6065
  Prefactor  = 0.000120811
  Prefactor  = 9.01977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.497
  Prefactor  = 13.0763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34589
  norm       = 8.41979
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56782
  Prefactor  = 5.98711
  Prefactor  = 52.8959
  norm       = 0.863486
  Normalizat = 1.22905
  Prefactor  = 0.808911
 **********
 **   18 **HESSE 
 **********

 FCN=   4076.522     FROM HESSE     STATUS=OK           442 CALLS     4396 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8754        .24547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .81545        .11225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     60.607        36.388        .10307E-04   -1.4149    
   5  Prefactor     .12081E-03    121.84        .20425       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0198        10.637        .53385E-05   -1.5107    
   7  Prefactor     .10000E-03    7.8398        .34743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    73.825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.497        28.255        .39439E-05   -1.4895    
  12  Prefactor     13.076        6.6485        .44308E-05   -1.4985    
  13  Prefactor     .10000E-03    2.0132        .17579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7097        .29771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3459        2.9523        .34848E-05   -1.5291    
  17  norm          8.4198        5.2083        .41875E-05   -1.5128    
  18  Prefactor     .10000E-03    27.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    38.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    282.91        .42491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5678        .91475        .11423E-05   -1.5330    
  22  Prefactor     5.9871        9.1986        .65640E-05   -1.5219    
  23  Prefactor     52.896        41.768        .22058E-05   -1.4252    
  24  norm          .86349        1.2385        .37001E-04   -1.5522    
  25  Normalizat    1.2290        .29160        .52144E-04   -.85710    
  26  Prefactor     .80891        .24416        .10840E-04   -.99401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04462e-09
Minuit parameter uncertainties:
  1  1.04999e-05
  2  8.3258e-05
  3  8.58212e-06
  4  36.4009
  5  0.100915
  6  10.6393
  7  1.21658e-05
  8  0.000103124
  9  0.00043339
  10  0.000275577
  11  28.2774
  12  6.64885
  13  2.59908e-05
  14  2.0995e-05
  15  1.32801e-05
  16  2.95238
  17  5.20861
  18  0.000120104
  19  0.000257332
  20  0.000609452
  21  0.914755
  22  9.20073
  23  41.7913
  24  1.23856
  25  0.291987
  26  0.244488
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.208e-04  1.009e-01  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.089e-01  2.445e-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  2.920e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186498/likelihoodResults_258768001_259027201_4FGL_J1156.6+0640_daily_bin75.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) = 4076.52241374
delta logL = -2.10234702536e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4076.52241374
delta logL = -2.10197868e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3183       1.0000          .0000       10.000    
     3 'Normalizat'    1.2290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80891       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=   4076.522     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96367E-02    90.677        .19045        .22752E-03
   2  Index         2.3183        3.1992        .50000        .57821E-04
   3  Normalizat    1.2291        .52561E-02    .58953E-01    .17028E-04
   4  Prefactor     .80891        .45552E-02    .43833E-01    .32807E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00963671
  Index      = 2.31826
  Normalizat = 1.22905
  Prefactor  = 0.808906
 **********
 **   18 **HESSE 
 **********

 FCN=   4076.522     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      283 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96367E-02    75.376        .20885       -1.5688    
   2  Index         2.3183        3.1235        .50000       -.56610    
   3  Normalizat    1.2291        .50852E-02    .26072E-03   -.85710    
   4  Prefactor     .80891        .44082E-02    .27098E-03   -.99401    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.04182e-11
Minuit parameter uncertainties:
  1  1.69783
  2  3.51662
  3  0.0050852
  4  0.00440822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186498': 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): 102
logL (Free Index) = 4076.52241374
delta logL = -2.10081907426e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  9.637e-03  1.698e+00  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  3.517e+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.089e-01  4.408e-03  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  5.085e-03  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/186498/cmap_HighResolution_258768001_259027201_4FGL_J1156.6+0640_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-04 17:15:15.120023', job_id='186498', GAL2='0.81', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630800915.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='75' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:15:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 186498: <4FGL_J1156.6+0640_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin75 179.164 6.6728 258768001 259027201 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 :                                   646.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

