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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin754
RA = 179.164, Dec = 6.6728
tmin = 434764801, tmax = 435024001
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='189771', job_status='RUN', time_executed='2021-09-04 17:15:26.909951', time_epoch_executed='1630800926.91' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189771/ft1_4FGL_J1156.6+0640_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189771/ft2_4FGL_J1156.6+0640_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189771/ft1_4FGL_J1156.6+0640_daily_bin754.fits outfile=/scratch/kocevski/189771/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin754.fits ra=179.164 dec=6.6728 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.69
user 5.42
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189771/ft2_4FGL_J1156.6+0640_daily_bin754.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/189771/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/189771/ft1_filtered_4FGL_J1156.6+0640_daily_bin754.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189771/ft1_filtered_4FGL_J1156.6+0640_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/189771/ft2_4FGL_J1156.6+0640_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/189771/ltcube_434764801_435024001_4FGL_J1156.6+0640_daily_bin754.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/189771/ft2_4FGL_J1156.6+0640_daily_bin754.fits
.....................!
real 12.38
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189771/ft1_filtered_4FGL_J1156.6+0640_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/189771/ft2_4FGL_J1156.6+0640_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/189771/ltcube_434764801_435024001_4FGL_J1156.6+0640_daily_bin754.fits outfile=/scratch/kocevski/189771/expmap_434764801_435024001_4FGL_J1156.6+0640_daily_bin754.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/189771/ltcube_434764801_435024001_4FGL_J1156.6+0640_daily_bin754.fits
.....................!
real 192.98
user 188.39
sys 4.24

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/189771/ft1_filtered_4FGL_J1156.6+0640_daily_bin754.fits scfile=/scratch/kocevski/189771/ft2_4FGL_J1156.6+0640_daily_bin754.fits outfile=/scratch/kocevski/189771/cmap_434764801_435024001_4FGL_J1156.6+0640_daily_bin754.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189771/ft1_filtered_4FGL_J1156.6+0640_daily_bin754.fits scfile=/scratch/kocevski/189771/ft2_4FGL_J1156.6+0640_daily_bin754.fits outfile=/scratch/kocevski/189771/cmap_HighResolution_434764801_435024001_4FGL_J1156.6+0640_daily_bin754.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/189771/ft1_filtered_4FGL_J1156.6+0640_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/189771/ft2_4FGL_J1156.6+0640_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189771/Model_4FGL_J1156.6+0640_daily_bin754.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/189771/ft1_filtered_4FGL_J1156.6+0640_daily_bin754.fits.....................!
real 46.60
user 45.21
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1143       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.714       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6484       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.458       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.097       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10749E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .45591       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11592E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1592       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3485       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11947E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.066       1.0000         .10000E-03   10000.    
    24 'norm      '    5.3531       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2767       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72619       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=   4694.101     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3122 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1111        11.937       -.58126E-06    .72579E-04
   2  Prefactor     .10000E-03    40.059        .79363E-07** at limit **
   3  Prefactor     2.4708        2.8721       -.99878E-07    .21086E-04
   4  Prefactor     24.711        27.731       -.97919E-07    .10157E-04
   5  Prefactor     .10000E-03    30.569       -.35331E-07** at limit **
   6  Prefactor     .10000E-03    4.5176       -.63723E-07** at limit **
   7  Prefactor     6.6481        6.3919       -.17485E-07    .22894E-04
   8  Prefactor     13.445        21.803        .56990E-08    .26259E-04
   9  Prefactor     .10000E-03    40.818       -.47130E-07** at limit **
  10  Prefactor     59.158        43.600       -.24644E-06    .17287E-04
  11  Prefactor     30.109        25.413        .37524E-06    .12046E-03
  12  Prefactor     .10000E-03    2.3425        .76388E-07** at limit **
  13  Prefactor     .86681        1.9975       -.11199E-05   -.72599E-03
  14  Prefactor     .10000E-03    12.501       -.26804E-06** at limit **
  15  Prefactor     .10000E-03    34.098       -.76100E-06** at limit **
  16  norm          .45217        3.3920       -.12479E-05    .81753E-03
  17  norm          2.0282        4.4373        .18251E-06   -.91112E-04
  18  Prefactor     .10000E-03    61.919       -.76103E-06** at limit **
  19  norm          .10000E-03    28.304       -.65471E-06** at limit **
  20  Prefactor     3.3404        2283.1       -.30081E-04   -.47325E-05
  21  norm          1.3486        .70497       -.34962E-07    .51597E-03
  22  Prefactor     .10000E-03    13.355       -.23568E-06** at limit **
  23  Prefactor     14.062        31.860       -.10327E-07    .14143E-04
  24  norm          5.3531        2.1487       -.26688E-07   -.65388E-04
  25  Normalizat    1.2770        .23000        .10235E-05    .10311E-03
  26  Prefactor     .72608        .18530       -.24103E-07    .11170E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.11111
  Prefactor  = 0.0001
  Prefactor  = 2.47083
  Prefactor  = 24.7107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.64808
  Prefactor  = 13.4449
  Prefactor  = 0.0001
  Prefactor  = 59.1581
  Prefactor  = 30.1094
  Prefactor  = 0.0001
  Prefactor  = 0.866813
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.452173
  norm       = 2.02823
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.34041
  norm       = 1.34862
  Prefactor  = 0.0001
  Prefactor  = 14.0624
  norm       = 5.35314
  Normalizat = 1.27701
  Prefactor  = 0.726079
 **********
 **   18 **HESSE 
 **********

 FCN=   4694.101     FROM HESSE     STATUS=OK           462 CALLS     3584 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1111        11.942        .88891E-03   -1.5256    
   2  Prefactor     .10000E-03    40.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4708        2.8617        .11900E-03   -1.5394    
   4  Prefactor     24.711        27.758        .80578E-04   -1.4713    
   5  Prefactor     .10000E-03    30.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5255        .14222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6481        6.3927        .15563E-03   -1.5192    
   8  Prefactor     13.445        21.890        .10919E-03   -1.4974    
   9  Prefactor     .10000E-03    40.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     59.158        43.589        .52160E-04   -1.4168    
  11  Prefactor     30.109        25.290        .73032E-04   -1.4610    
  12  Prefactor     .10000E-03    2.3725        .10244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .86681        2.0194        .17080E-02   -1.5522    
  14  Prefactor     .10000E-03    12.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .45217        8.9109        .19474E-02   -1.5573    
  17  norm          2.0282        4.3848        .18225E-03   -1.5423    
  18  Prefactor     .10000E-03    62.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    28.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3404        6110.6        .19763E-02   -1.5342    
  21  norm          1.3486        .69105        .36601E-04   -1.5476    
  22  Prefactor     .10000E-03    13.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.062        31.855        .10680E-03   -1.4958    
  24  norm          5.3531        2.1463        .60469E-04   -1.5245    
  25  Normalizat    1.2770        .27248        .25242E-03   -.84255    
  26  Prefactor     .72608        .21926        .27222E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7892e-09
Minuit parameter uncertainties:
  1  11.9477
  2  1.38432e-05
  3  2.86187
  4  27.7728
  5  2.18148e-06
  6  1.03872e-06
  7  6.39337
  8  21.9029
  9  4.22868e-07
  10  43.6122
  11  25.2987
  12  7.32904e-06
  13  2.01952
  14  1.5591e-05
  15  0.000280568
  16  4.01485
  17  4.38553
  18  0.000426488
  19  2.08053e-05
  20  186.186
  21  0.691059
  22  9.78527e-06
  23  31.8938
  24  2.14637
  25  0.272785
  26  0.219521
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.181e-06  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.261e-01  2.195e-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.277e+00  2.728e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189771/likelihoodResults_434764801_435024001_4FGL_J1156.6+0640_daily_bin754.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) = 4694.10065861
delta logL = -0.000155448211444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4694.10050425
delta logL = -1.08621134132e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6847       1.0000          .0000       10.000    
     3 'Normalizat'    1.2770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72608       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=   4694.101     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      286 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10511E-03    14.451        .18142E-01** at limit **
   2  Index         2.5786        5.5137        .50000        .15271E-04
   3  Normalizat    1.2770        .45945E-02    .25241E-03   -.84676E-05
   4  Prefactor     .72608        .38647E-02    .27222E-03   -.33828E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105111
  Index      = 2.57859
  Normalizat = 1.27701
  Prefactor  = 0.726078
 **********
 **   18 **HESSE 
 **********

 FCN=   4694.101     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10511E-03    97.891        .31027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5786        6.2413        .50000       -.50554    
   3  Normalizat    1.2770        .12020E-01    .10096E-04   -.84255    
   4  Prefactor     .72608        .10110E-01    .10889E-04   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3531e-09
Minuit parameter uncertainties:
  1  0.0448106
  2  307.867
  3  0.0120196
  4  0.0101105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189771': 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) = 4694.10050397
delta logL = -8.09394805401e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.051e-04  4.481e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.579e+00  3.079e+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.261e-01  1.011e-02  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.277e+00  1.202e-02  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/189771/cmap_HighResolution_434764801_435024001_4FGL_J1156.6+0640_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-04 17:26:28.100375', job_id='189771', GAL2='0.73', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630801588.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-8.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='754' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 189771: <4FGL_J1156.6+0640_daily_bin754> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin754> 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) <bullet0089>, 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:26:28 2021
Results reported at Sat Sep  4 17:26:28 2021

Your job looked like:

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

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

