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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin937
RA = 179.164, Dec = 6.6728
tmin = 482198401, tmax = 482457601
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='191328', job_status='RUN', time_executed='2021-09-04 17:19:01.925899', time_epoch_executed='1630801141.93' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191328

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191328/ft1_4FGL_J1156.6+0640_daily_bin937.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191328/ft2_4FGL_J1156.6+0640_daily_bin937.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191328/ft1_4FGL_J1156.6+0640_daily_bin937.fits outfile=/scratch/kocevski/191328/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin937.fits ra=179.164 dec=6.6728 rad=12.0 tmin=482198401.0 tmax=482457601.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.88
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191328/ft1_filtered_4FGL_J1156.6+0640_daily_bin937.fits" evtable="EVENTS" scfile=/scratch/kocevski/191328/ft2_4FGL_J1156.6+0640_daily_bin937.fits sctable="SC_DATA" outfile=/scratch/kocevski/191328/ltcube_482198401_482457601_4FGL_J1156.6+0640_daily_bin937.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/191328/ft2_4FGL_J1156.6+0640_daily_bin937.fits
.....................!
real 11.96
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191328/ft1_filtered_4FGL_J1156.6+0640_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/191328/ft2_4FGL_J1156.6+0640_daily_bin937.fits sctable="SC_DATA" expcube=/scratch/kocevski/191328/ltcube_482198401_482457601_4FGL_J1156.6+0640_daily_bin937.fits outfile=/scratch/kocevski/191328/expmap_482198401_482457601_4FGL_J1156.6+0640_daily_bin937.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/191328/ltcube_482198401_482457601_4FGL_J1156.6+0640_daily_bin937.fits
.....................!
real 191.10
user 186.24
sys 4.49

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/191328/ft1_filtered_4FGL_J1156.6+0640_daily_bin937.fits scfile=/scratch/kocevski/191328/ft2_4FGL_J1156.6+0640_daily_bin937.fits outfile=/scratch/kocevski/191328/cmap_482198401_482457601_4FGL_J1156.6+0640_daily_bin937.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191328/ft1_filtered_4FGL_J1156.6+0640_daily_bin937.fits scfile=/scratch/kocevski/191328/ft2_4FGL_J1156.6+0640_daily_bin937.fits outfile=/scratch/kocevski/191328/cmap_HighResolution_482198401_482457601_4FGL_J1156.6+0640_daily_bin937.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4993       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.029       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1298       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.099       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.287       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.057       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26354E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3412       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9535       1.0000         .10000E-03   10000.    
    17 'norm      '    7.7147       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.907       1.0000         .10000E-03   10000.    
    19 'norm      '    .43505E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9616       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13958E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.437       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0502       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1224       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75885       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=   6171.252     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3759 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4975        11.147        .22278E-05    .70183E-05
   2  Prefactor     11.023        37.688        .34841E-06   -.38308E-05
   3  Prefactor     .10000E-03    1.1114        .11677E-07** at limit **
   4  Prefactor     .10000E-03    13.071       -.78060E-06** at limit **
   5  Prefactor     .10000E-03    36.901        .71969E-06** at limit **
   6  Prefactor     2.1280        2.4943        .24246E-06   -.75748E-03
   7  Prefactor     15.098        10.603        .15495E-05    .13109E-04
   8  Prefactor     25.287        18.611       -.65156E-06   -.89536E-05
   9  Prefactor     .10000E-03    98.633       -.11642E-05** at limit **
  10  Prefactor     .10000E-03    10.795       -.17026E-07** at limit **
  11  Prefactor     45.058        24.682       -.69621E-06   -.42508E-05
  12  Prefactor     .10000E-03    2.9483        .55092E-07** at limit **
  13  Prefactor     .10000E-03    2.0790        .39991E-07** at limit **
  14  Prefactor     .10000E-03    13.472        .94539E-06** at limit **
  15  Prefactor     4.3228        14.129       -.63323E-05   -.75171E-04
  16  norm          1.9567        2.9253        .12267E-05    .20188E-03
  17  norm          7.7036        4.3176       -.15060E-07   -.37557E-03
  18  Prefactor     22.906        22.402       -.54777E-07   -.35149E-05
  19  norm          .10000E-03    145.11        .16677E-04** at limit **
  20  Prefactor     .10000E-03    308.30       -.37303E-05** at limit **
  21  norm          2.9609        .73257        .37778E-07   -.85666E-03
  22  Prefactor     .10000E-03    15.278       -.27248E-06** at limit **
  23  Prefactor     32.434        32.868        .41461E-06    .18040E-05
  24  norm          1.0501        1.7587        .48948E-08   -.14471E-03
  25  Normalizat    1.1227        .19833       -.30873E-06   -.24199E-04
  26  Prefactor     .75868        .15986       -.60928E-08   -.43138E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.49748
  Prefactor  = 11.0228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.12798
  Prefactor  = 15.0981
  Prefactor  = 25.287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.32279
  norm       = 1.95671
  norm       = 7.70365
  Prefactor  = 22.9055
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.96085
  Prefactor  = 0.0001
  Prefactor  = 32.434
  norm       = 1.05012
  Normalizat = 1.12268
  Prefactor  = 0.758685
 **********
 **   18 **HESSE 
 **********

 FCN=   6171.252     FROM HESSE     STATUS=OK           464 CALLS     4223 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4975        11.129        .13750E-03   -1.5125    
   2  Prefactor     11.023        37.720        .12064E-03   -1.5044    
   3  Prefactor     .10000E-03    1.1463        .16155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1280        8.7314        .14126E-02   -1.5416    
   7  Prefactor     15.098        10.601        .10307E-03   -1.4931    
   8  Prefactor     25.287        18.758        .79661E-04   -1.4702    
   9  Prefactor     .10000E-03    98.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.058        24.630        .59729E-04   -1.4364    
  12  Prefactor     .10000E-03    6.9131        .25581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9336        .21501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3228        14.018        .19333E-03   -1.5292    
  16  norm          1.9567        2.8813        .13134E-03   -1.5428    
  17  norm          7.7036        4.3228        .11041E-03   -1.5153    
  18  Prefactor     22.906        22.403        .83691E-04   -1.4750    
  19  norm          .10000E-03    147.17        .42449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    308.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9609        .73028        .30115E-04   -1.5364    
  22  Prefactor     .10000E-03    15.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.434        32.846        .70355E-04   -1.4568    
  24  norm          1.0501        1.7222        .12612E-03   -1.5503    
  25  Normalizat    1.1227        .23495        .25833E-03   -.89027    
  26  Prefactor     .75868        .18778        .25951E-03   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04317e-09
Minuit parameter uncertainties:
  1  11.1317
  2  37.8013
  3  3.31733e-07
  4  1.12194e-05
  5  2.60273e-07
  6  8.6229
  7  10.6027
  8  18.7619
  9  8.492e-05
  10  6.62643e-06
  11  24.6358
  12  8.64787e-06
  13  3.96754e-06
  14  3.54582e-06
  15  14.0288
  16  2.88154
  17  4.32296
  18  22.4111
  19  0.000510219
  20  2.01808e-05
  21  0.730286
  22  8.1848e-06
  23  32.864
  24  1.72224
  25  0.235169
  26  0.187934
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.603e-07  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:  7.587e-01  1.879e-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.123e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/191328/likelihoodResults_482198401_482457601_4FGL_J1156.6+0640_daily_bin937.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) = 6171.25230779
delta logL = -0.000128957661218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6171.2521789
delta logL = -6.71316229273e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3880       1.0000          .0000       10.000    
     3 'Normalizat'    1.1227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75869       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=   6171.252     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      277 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6243.6        .18142E-01** at limit **
   2  Index         1.8885        7.0119        .47901E-01   -.11867E-08
   3  Normalizat    1.1227        .42030E-01    .25833E-03    .24901E-03
   4  Prefactor     .75868        .35582E-01    .25951E-03    .65319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8885
  Normalizat = 1.12269
  Prefactor  = 0.758683
 **********
 **   18 **HESSE 
 **********

 FCN=   6171.252     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.592        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8885        8.5289        .19160E-02   -.67168    
   3  Normalizat    1.1227        .22035        .51666E-04   -.89027    
   4  Prefactor     .75868        .18655        .10380E-04   -1.0127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84849e-10
Minuit parameter uncertainties:
  1  2.08452e-05
  2  829.93
  3  0.220531
  4  0.186706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191328': 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) = 6171.25217871
delta logL = 1.19551259559e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.085e-05  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  1.889e+00  8.299e+02  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:  7.587e-01  1.867e-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.123e+00  2.205e-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/191328/cmap_HighResolution_482198401_482457601_4FGL_J1156.6+0640_daily_bin937.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-04 17:32:40.088948', job_id='191328', GAL2='0.76', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630801960.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='937' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:32:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 191328: <4FGL_J1156.6+0640_daily_bin937> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin937 179.164 6.6728 482198401 482457601 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 :                                   816.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            972 sec.

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

