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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin753
RA = 179.164, Dec = 6.6728
tmin = 434505601, tmax = 434764801
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='189769', job_status='RUN', time_executed='2021-09-04 17:15:33.612410', time_epoch_executed='1630800933.61' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189769

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189769/ft1_4FGL_J1156.6+0640_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189769/ft2_4FGL_J1156.6+0640_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189769/ft1_4FGL_J1156.6+0640_daily_bin753.fits outfile=/scratch/kocevski/189769/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin753.fits ra=179.164 dec=6.6728 rad=12.0 tmin=434505601.0 tmax=434764801.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 6.01
user 5.68
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189769/ft1_filtered_4FGL_J1156.6+0640_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/189769/ft2_4FGL_J1156.6+0640_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/189769/ltcube_434505601_434764801_4FGL_J1156.6+0640_daily_bin753.fits outfile=/scratch/kocevski/189769/expmap_434505601_434764801_4FGL_J1156.6+0640_daily_bin753.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/189769/ltcube_434505601_434764801_4FGL_J1156.6+0640_daily_bin753.fits
.....................!
real 189.55
user 185.26
sys 3.94

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/189769/ft1_filtered_4FGL_J1156.6+0640_daily_bin753.fits scfile=/scratch/kocevski/189769/ft2_4FGL_J1156.6+0640_daily_bin753.fits outfile=/scratch/kocevski/189769/cmap_434505601_434764801_4FGL_J1156.6+0640_daily_bin753.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189769/ft1_filtered_4FGL_J1156.6+0640_daily_bin753.fits scfile=/scratch/kocevski/189769/ft2_4FGL_J1156.6+0640_daily_bin753.fits outfile=/scratch/kocevski/189769/cmap_HighResolution_434505601_434764801_4FGL_J1156.6+0640_daily_bin753.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.145       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22121       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    73.174       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8323       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6369       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10288E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .41316       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0863       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1900       1.0000         .10000E-03   10000.    
    19 'norm      '    5.8507       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3645       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5385       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8114       1.0000         .10000E-03   10000.    
    24 'norm      '    2.2963       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1174       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=   5519.019     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3113 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.141        13.967        .55761E-07   -.68861E-06
   2  Prefactor     .10000E-03    33.309        .21138E-06** at limit **
   3  Prefactor     .20778        1.9502       -.37942E-06    .40810E-03
   4  Prefactor     .10000E-03    21.120       -.10844E-06** at limit **
   5  Prefactor     73.130        138.63        .96909E-06    .31422E-05
   6  Prefactor     .10000E-03    11.125       -.10707E-05** at limit **
   7  Prefactor     2.0558        5.4106        .31989E-06    .14410E-04
   8  Prefactor     1.8280        26.982        .87030E-07   -.74753E-05
   9  Prefactor     6.4138        290.79        .24500E-04    .31788E-05
  10  Prefactor     .10000E-03    8.4840       -.37849E-07** at limit **
  11  Prefactor     .10000E-03    6.7644        .12519E-07** at limit **
  12  Prefactor     .10000E-03    2.7769       -.54542E-07** at limit **
  13  Prefactor     1.3080        4.4476       -.10569E-06   -.46822E-05
  14  Prefactor     .10000E-03    10.830        .22719E-06** at limit **
  15  Prefactor     .10000E-03    3.4924        .43422E-07** at limit **
  16  norm          .41278        1.2757       -.88524E-07   -.11356E-03
  17  norm          4.0853        4.6171        .56713E-06    .14058E-03
  18  Prefactor     4.1837        28.813        .15574E-06   -.18620E-05
  19  norm          5.8484        34.138       -.61295E-06   -.43544E-07
  20  Prefactor     .10000E-03    77.896       -.53896E-06** at limit **
  21  norm          3.3644        .85160       -.24010E-07    .16725E-04
  22  Prefactor     5.5382        7.4971        .12272E-08   -.35647E-05
  23  Prefactor     9.8079        28.363        .81396E-07   -.36960E-06
  24  norm          2.2955        2.0272        .37539E-07   -.29929E-05
  25  Normalizat    1.0482        .24062        .10071E-05    .17890E-04
  26  Prefactor     1.1175        .19501       -.15035E-05    .70130E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1414
  Prefactor  = 0.0001
  Prefactor  = 0.207779
  Prefactor  = 0.0001
  Prefactor  = 73.1298
  Prefactor  = 0.0001
  Prefactor  = 2.0558
  Prefactor  = 1.82802
  Prefactor  = 6.41383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.412778
  norm       = 4.08525
  Prefactor  = 4.18374
  norm       = 5.84837
  Prefactor  = 0.0001
  norm       = 3.36436
  Prefactor  = 5.53817
  Prefactor  = 9.80791
  norm       = 2.29552
  Normalizat = 1.04824
  Prefactor  = 1.11755
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.019     FROM HESSE     STATUS=OK           468 CALLS     3581 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.141        13.969        .12001E-03   -1.5040    
   2  Prefactor     .10000E-03    33.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .20778        8.9922        .19325E-02   -1.5617    
   4  Prefactor     .10000E-03    21.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     73.130        139.11        .46934E-04   -1.3996    
   6  Prefactor     .10000E-03    11.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0558        5.3823        .27196E-03   -1.5421    
   8  Prefactor     1.8280        27.181        .15415E-02   -1.5438    
   9  Prefactor     6.4138        295.68        .15576E-03   -1.5201    
  10  Prefactor     .10000E-03    8.4850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.093        .22274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3080        4.1575        .25122E-03   -1.5479    
  14  Prefactor     .10000E-03    10.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4966        .13556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .41278        1.1531        .14374E-02   -1.5579    
  17  norm          4.0853        4.6437        .70606E-03   -1.5304    
  18  Prefactor     4.1837        28.775        .19688E-03   -1.5299    
  19  norm          5.8484        34.067        .16603E-03   -1.5224    
  20  Prefactor     .10000E-03    77.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3644        .85078        .30770E-04   -1.5341    
  22  Prefactor     5.5382        7.4756        .17072E-03   -1.5237    
  23  Prefactor     9.8079        28.347        .12793E-03   -1.5082    
  24  norm          2.2955        2.0114        .91854E-04   -1.5405    
  25  Normalizat    1.0482        .28416        .30383E-03   -.91431    
  26  Prefactor     1.1175        .22948        .25224E-03   -.88908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.041e-08
Minuit parameter uncertainties:
  1  13.9727
  2  1.03753e-05
  3  2.73356
  4  6.57783e-06
  5  139.738
  6  9.93779e-05
  7  5.38356
  8  14.1052
  9  87.56
  10  2.46752e-06
  11  1.20948e-06
  12  3.90644e-05
  13  4.15844
  14  2.10707e-06
  15  1.70721e-06
  16  1.15316
  17  4.64414
  18  21.9592
  19  28.2545
  20  3.02708e-05
  21  0.850783
  22  7.47685
  23  28.3862
  24  2.01148
  25  0.284569
  26  0.229679
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  7.313e+01  1.397e+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:  1.118e+00  2.297e-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.048e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189769/likelihoodResults_434505601_434764801_4FGL_J1156.6+0640_daily_bin753.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) = 5518.97669152
delta logL = 0.0426625652108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5518.95835091
delta logL = 0.0610031775805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.473       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7413       1.0000          .0000       10.000    
     3 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1267       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=   5518.958     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      294 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.483        174.28        .58196E-04    .11092E-03
   2  Index         2.7418        1.7954        .85450E-02    .10998E-03
   3  Normalizat    1.0310        .27222        .30611E-03    .34753E-03
   4  Prefactor     1.1273        .22925        .25130E-03    .40153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.4826
  Index      = 2.74182
  Normalizat = 1.03102
  Prefactor  = 1.12734
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.958     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.483        127.47        .11639E-04   -1.4329    
   2  Index         2.7418        1.3214        .34180E-03   -.46860    
   3  Normalizat    1.0310        .27113        .61221E-04   -.91998    
   4  Prefactor     1.1273        .22789        .50260E-04   -.88598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09032e-10
Minuit parameter uncertainties:
  1  128.208
  2  1.34149
  3  0.271489
  4  0.228084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189769': 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) = 5518.95834657
delta logL = 0.0610075133563

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  4.748e+01  1.282e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.742e+00  1.341e+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:  1.127e+00  2.281e-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.031e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/189769/cmap_HighResolution_434505601_434764801_4FGL_J1156.6+0640_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-04 17:27:25.635729', job_id='189769', GAL2='1.13', fit_tolerance='1e-08', EG2='1.03', EG='1.05', time_epoch_completed='1630801645.64', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='6.10e-02', ts2='0.48', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='753' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:27:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 189769: <4FGL_J1156.6+0640_daily_bin753> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin753> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:31 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11: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:11:32 2021
Terminated at Sat Sep  4 17:27:26 2021
Results reported at Sat Sep  4 17:27:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin753 179.164 6.6728 434505601 434764801 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

