/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 171 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin214
RA = 179.164, Dec = 6.6728
tmin = 294796801, tmax = 295056001
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='186710', job_status='RUN', time_executed='2021-09-04 17:04:37.008898', time_epoch_executed='1630800277.01' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186710/ft1_4FGL_J1156.6+0640_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186710/ft2_4FGL_J1156.6+0640_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186710/ft1_4FGL_J1156.6+0640_daily_bin214.fits outfile=/scratch/kocevski/186710/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin214.fits ra=179.164 dec=6.6728 rad=12.0 tmin=294796801.0 tmax=295056001.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 2.31
user 2.16
sys 0.14

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186710/ft1_filtered_4FGL_J1156.6+0640_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/186710/ft2_4FGL_J1156.6+0640_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/186710/ltcube_294796801_295056001_4FGL_J1156.6+0640_daily_bin214.fits outfile=/scratch/kocevski/186710/expmap_294796801_295056001_4FGL_J1156.6+0640_daily_bin214.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/186710/ltcube_294796801_295056001_4FGL_J1156.6+0640_daily_bin214.fits
.....................!
real 190.09
user 185.31
sys 4.37

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/186710/ft1_filtered_4FGL_J1156.6+0640_daily_bin214.fits scfile=/scratch/kocevski/186710/ft2_4FGL_J1156.6+0640_daily_bin214.fits outfile=/scratch/kocevski/186710/cmap_294796801_295056001_4FGL_J1156.6+0640_daily_bin214.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186710/ft1_filtered_4FGL_J1156.6+0640_daily_bin214.fits scfile=/scratch/kocevski/186710/ft2_4FGL_J1156.6+0640_daily_bin214.fits outfile=/scratch/kocevski/186710/cmap_HighResolution_294796801_295056001_4FGL_J1156.6+0640_daily_bin214.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13782E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6855       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    91.666       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.293       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3799       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52015E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.6878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8955       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34428E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4754       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .17741       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3632       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97168       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=   6728.543     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3157 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1901        .17691E-07** at limit **
   2  Prefactor     .10000E-03    14.157        .98368E-07** at limit **
   3  Prefactor     .10000E-03    .85072       -.74746E-08** at limit **
   4  Prefactor     .10000E-03    5.0298       -.51507E-07** at limit **
   5  Prefactor     .10000E-03    28.808        .14808E-06** at limit **
   6  Prefactor     2.9659        9.2855       -.54653E-06   -.52777E-05
   7  Prefactor     2.6847        7.0999        .54593E-05   -.22926E-03
   8  Prefactor     .10000E-03    32.857        .13405E-05** at limit **
   9  Prefactor     .10000E-03    124.78        .18271E-05** at limit **
  10  Prefactor     91.634        48.539       -.33791E-06    .68638E-05
  11  Prefactor     22.318        25.072        .96985E-06    .13630E-03
  12  Prefactor     .10000E-03    3.5327        .12964E-07** at limit **
  13  Prefactor     8.3787        4.2981        .59750E-07    .59619E-04
  14  Prefactor     .10000E-03    10.906        .87284E-08** at limit **
  15  Prefactor     .10311E-03    8.4393        .14154E-05** at limit **
  16  norm          .10000E-03    .83983       -.90913E-07** at limit **
  17  norm          9.7005        5.2622       -.45849E-06   -.17381E-02
  18  Prefactor     .10000E-03    53.681        .37970E-06** at limit **
  19  norm          1.6914        319.99        .15026E-04    .26052E-04
  20  Prefactor     .10000E-03    261.46       -.23622E-05** at limit **
  21  norm          1.4766        .72702       -.65275E-07   -.15165E-02
  22  Prefactor     .10000E-03    9.0270        .90201E-07** at limit **
  23  Prefactor     .10000E-03    10.631        .48393E-07** at limit **
  24  norm          .17688        1.1251        .82216E-07   -.33672E-03
  25  Normalizat    1.3632        .20562       -.52425E-07    .13135E-04
  26  Prefactor     .97184        .17079       -.33728E-06    .78545E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.96588
  Prefactor  = 2.68469
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 91.6335
  Prefactor  = 22.3181
  Prefactor  = 0.0001
  Prefactor  = 8.3787
  Prefactor  = 0.0001
  Prefactor  = 0.000103107
  norm       = 0.0001
  norm       = 9.70053
  Prefactor  = 0.0001
  norm       = 1.69139
  Prefactor  = 0.000100003
  norm       = 1.47662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.17688
  Normalizat = 1.36325
  Prefactor  = 0.971841
 **********
 **   18 **HESSE 
 **********

 FCN=   6728.543     FROM HESSE     STATUS=OK           462 CALLS     3619 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1994        .16398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .86118        .73845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0307        .17968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9659        9.2400        .23558E-03   -1.5364    
   7  Prefactor     2.6847        7.1503        .12432E-02   -1.5380    
   8  Prefactor     .10000E-03    34.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    125.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     91.634        48.752        .41972E-04   -1.3791    
  11  Prefactor     22.318        25.195        .84835E-04   -1.4763    
  12  Prefactor     .10000E-03    3.5799        .14994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3787        4.2946        .11635E-03   -1.5129    
  14  Prefactor     .10000E-03    10.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10311E-03    11.766        .69271E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .84371        .73350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.7005        5.3389        .54801E-03   -1.5085    
  18  Prefactor     .10000E-03    54.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6914        326.05        .30216E-03   -1.5448    
  20  Prefactor     .10000E-03    261.84        .21331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4766        .71388        .42434E-04   -1.5465    
  22  Prefactor     .10000E-03    9.1044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .17688        2.4796        .16492E-02   -1.5624    
  25  Normalizat    1.3632        .24224        .26607E-03   -.81698    
  26  Prefactor     .97184        .20014        .26605E-03   -.93674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59866e-08
Minuit parameter uncertainties:
  1  1.86268e-06
  2  6.6578e-06
  3  6.964e-07
  4  8.79605e-06
  5  4.418e-06
  6  9.24447
  7  7.15261
  8  0.000587067
  9  0.00121582
  10  48.7736
  11  25.2073
  12  2.45873e-06
  13  4.29474
  14  1.08119e-05
  15  0.0120957
  16  6.45802e-06
  17  5.33918
  18  0.000170656
  19  47.2286
  20  0.00178216
  21  0.713887
  22  1.68234e-05
  23  6.11529e-06
  24  1.32421
  25  0.242445
  26  0.200295
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  4.418e-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:  9.718e-01  2.003e-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.363e+00  2.424e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186710/likelihoodResults_294796801_295056001_4FGL_J1156.6+0640_daily_bin214.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) = 6728.54305948
delta logL = -0.000165170899891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6728.54289677
delta logL = -2.45829960477e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12682E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8284       1.0000          .0000       10.000    
     3 'Normalizat'    1.3632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97184       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=   6728.543     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11588E-03    10.122        .18142E-01** at limit **
   2  Index         2.5625        7.9810        .50000        .14890E-04
   3  Normalizat    1.3632        .34705E-02    .26607E-03   -.51274E-05
   4  Prefactor     .97184        .30076E-02    .26605E-03   -.10897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000115877
  Index      = 2.56245
  Normalizat = 1.36325
  Prefactor  = 0.97184
 **********
 **   18 **HESSE 
 **********

 FCN=   6728.543     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11588E-03    133.62        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5625        5.9620        .50000       -.50924    
   3  Normalizat    1.3632        .12704E-01    .10643E-04   -.81698    
   4  Prefactor     .97184        .11009E-01    .10642E-04   -.93674    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41611e-08
Minuit parameter uncertainties:
  1  0.092324
  2  578.43
  3  0.012704
  4  0.0110093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186710': 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) = 6728.54289525
delta logL = -9.43375198403e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.159e-04  9.232e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.562e+00  5.784e+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:  9.718e-01  1.101e-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.363e+00  1.270e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/186710/cmap_HighResolution_294796801_295056001_4FGL_J1156.6+0640_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-04 17:18:03.112645', job_id='186710', GAL2='0.97', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630801083.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-9.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='214' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:18:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 186710: <4FGL_J1156.6+0640_daily_bin214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin214 179.164 6.6728 294796801 295056001 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 :                                   805.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            988 sec.

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

