/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 228 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin357
RA = 179.164, Dec = 6.6728
tmin = 331862401, tmax = 332121601
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='187949', job_status='RUN', time_executed='2021-09-04 17:10:20.495920', time_epoch_executed='1630800620.5' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187949/ft1_4FGL_J1156.6+0640_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187949/ft2_4FGL_J1156.6+0640_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187949/ft1_4FGL_J1156.6+0640_daily_bin357.fits outfile=/scratch/kocevski/187949/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin357.fits ra=179.164 dec=6.6728 rad=12.0 tmin=331862401.0 tmax=332121601.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 4.36
user 4.14
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187949/ft1_filtered_4FGL_J1156.6+0640_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/187949/ft2_4FGL_J1156.6+0640_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/187949/ltcube_331862401_332121601_4FGL_J1156.6+0640_daily_bin357.fits outfile=/scratch/kocevski/187949/expmap_331862401_332121601_4FGL_J1156.6+0640_daily_bin357.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/187949/ltcube_331862401_332121601_4FGL_J1156.6+0640_daily_bin357.fits
.....................!
real 191.66
user 187.21
sys 4.06

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/187949/ft1_filtered_4FGL_J1156.6+0640_daily_bin357.fits scfile=/scratch/kocevski/187949/ft2_4FGL_J1156.6+0640_daily_bin357.fits outfile=/scratch/kocevski/187949/cmap_331862401_332121601_4FGL_J1156.6+0640_daily_bin357.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10681E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.209       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.109       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15186E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0052       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12411E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11650E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7639       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10964E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7676       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2677       1.0000         .10000E-03   10000.    
    24 'norm      '    7.2420       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3837       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5964.929     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     2600 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0479        .70061E-05** at limit **
   2  Prefactor     .10139E-03    14.046       -.45041E-04** at limit **
   3  Prefactor     .10000E-03    2.4328        .58460E-06** at limit **
   4  Prefactor     .10000E-03    8.4695        .71143E-05** at limit **
   5  Prefactor     15.827        1.0110       -.37828E-06    .20521E-03
   6  Prefactor     .10000E-03    4.4471       -.76870E-06** at limit **
   7  Prefactor     4.1551        1.0121       -.22336E-07    .25149E-04
   8  Prefactor     18.191        1.7925        .30026E-05   -.67788E-03
   9  Prefactor     .12893E-03    91.583       -.11657E-03** at limit **
  10  Prefactor     17.119        1.5963        .22537E-05   -.71925E-03
  11  Prefactor     .21552E-03    14.251       -.63308E-04** at limit **
  12  Prefactor     2.0607        3.0344        .18724E-06    .20523E-03
  13  Prefactor     3.0051        3.1278       -.79058E-07    .40873E-03
  14  Prefactor     .12666E-03    59.330        .10324E-04** at limit **
  15  Prefactor     .10000E-03    25.347       -.63575E-04** at limit **
  16  norm          2.7655        2.3523        .12485E-06   -.58296E-03
  17  norm          3.8799        3.9665       -.65576E-07    .11759E-03
  18  Prefactor     .10000E-03    8.7902       -.95994E-05** at limit **
  19  norm          .10057E-03    21.859        .50098E-04** at limit **
  20  Prefactor     .10191E-03    42.829        .96996E-04** at limit **
  21  norm          1.7679        .76651       -.18793E-06    .68201E-03
  22  Prefactor     .10000E-03    5.1296       -.80137E-05** at limit **
  23  Prefactor     4.2631        1.1038       -.99977E-06   -.16491E-04
  24  norm          7.2416        2.3835        .45801E-07    .20923E-03
  25  Normalizat    1.3842        .24943       -.25075E-05    .20594E-03
  26  Prefactor     .99198        .21463        .16686E-06    .19491E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000101391
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.8272
  Prefactor  = 0.0001
  Prefactor  = 4.15508
  Prefactor  = 18.1909
  Prefactor  = 0.000128935
  Prefactor  = 17.1193
  Prefactor  = 0.000215516
  Prefactor  = 2.06073
  Prefactor  = 3.00513
  Prefactor  = 0.000126661
  Prefactor  = 0.000100003
  norm       = 2.76554
  norm       = 3.87986
  Prefactor  = 0.0001
  norm       = 0.00010057
  Prefactor  = 0.000101911
  norm       = 1.7679
  Prefactor  = 0.0001
  Prefactor  = 4.26314
  norm       = 7.24157
  Normalizat = 1.38421
  Prefactor  = 0.991983
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.929     FROM HESSE     STATUS=OK           520 CALLS     3120 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0291        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10139E-03    28.202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.827        69.476        .25168E-02   -1.4912    
   6  Prefactor     .10000E-03    4.4363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1551        6.7059        .49451E-02   -1.5300    
   8  Prefactor     18.191        18.578        .23465E-02   -1.4855    
   9  Prefactor     .12893E-03    172.63        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.119        33.531        .24207E-02   -1.4880    
  11  Prefactor     .21552E-03    27.136        .12361       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0607        3.0675        .71977E-02   -1.5421    
  13  Prefactor     3.0051        3.1514        .58534E-02   -1.5361    
  14  Prefactor     .12666E-03    106.18        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.979        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7655        2.3759        .61205E-02   -1.5375    
  17  norm          3.8799        4.0016        .51204E-02   -1.5314    
  18  Prefactor     .10000E-03    8.7890        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10057E-03    25.826        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10191E-03    50.646        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7679        .77608        .78758E-02   -1.5442    
  22  Prefactor     .10000E-03    5.1196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2631        39.303        .48758E-02   -1.5295    
  24  norm          7.2416        2.3873        .37263E-02   -1.5170    
  25  Normalizat    1.3842        .21964        .59923E-01   -.81086    
  26  Prefactor     .99198        .18345        .46173E-01   -.92997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45145e-07
Minuit parameter uncertainties:
  1  3.28289e-05
  2  0.0125328
  3  2.4991e-05
  4  0.000207107
  5  66.4506
  6  3.08847e-05
  7  6.7071
  8  18.5839
  9  0.141762
  10  33.5683
  11  0.112027
  12  3.0677
  13  3.15153
  14  0.106601
  15  0.000636555
  16  2.37602
  17  4.00183
  18  2.96693e-06
  19  0.00767662
  20  0.0196942
  21  0.776084
  22  5.00588e-05
  23  25.9107
  24  2.38733
  25  0.219794
  26  0.183561
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.583e+01  6.645e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.920e-01  1.836e-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.384e+00  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/187949/likelihoodResults_331862401_332121601_4FGL_J1156.6+0640_daily_bin357.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) = 5964.92941095
delta logL = 5.32781577931e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5964.9293903
delta logL = 7.39305214665e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.509       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3390       1.0000          .0000       10.000    
     3 'Normalizat'    1.3841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99193       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5964.929     FROM MIGRAD    STATUS=FAILED        84 CALLS      257 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.447        87.542        .10170E-03   -.30059E-03
   2  Index         2.3472        2.2545        .53449E-02   -.55281E-03
   3  Normalizat    1.3839        .24561        .26503E-03   -.35200E-02
   4  Prefactor     .99213        .21440        .26764E-03   -.30028E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5964.929     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      326 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.447        87.542        .93293E-03   -1.4922    
   2  Index         2.3472        2.2545        .30904E-02   -.55926    
   3  Normalizat    1.3839        .24561        .31734E-03   -.81094    
   4  Prefactor     .99213        .21440        .26478E-03   -.92992    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5964.929     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      352 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.439        83.857        .20340E-04   -.73331E-04
   2  Index         2.3479        2.2109        .21380E-03    .87633E-05
   3  Normalizat    1.3839        .24578        .53007E-04   -.27110E-04
   4  Prefactor     .99213        .21454        .53528E-04   -.15674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4391
  Index      = 2.34786
  Normalizat = 1.38395
  Prefactor  = 0.992131
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.929     FROM HESSE     STATUS=OK            23 CALLS      375 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.439        83.559        .40681E-05   -1.4922    
   2  Index         2.3479        2.2085        .42759E-04   -.55911    
   3  Normalizat    1.3839        .24581        .10601E-04   -.81094    
   4  Prefactor     .99213        .21457        .10706E-04   -.92992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60485e-10
Minuit parameter uncertainties:
  1  71.9914
  2  2.32302
  3  0.246019
  4  0.214755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187949': 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) = 5964.92938252
delta logL = 8.17091859062e-05

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.544e+01  7.199e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.348e+00  2.323e+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:  9.921e-01  2.148e-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.384e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/187949/cmap_HighResolution_331862401_332121601_4FGL_J1156.6+0640_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-04 17:22:30.566896', job_id='187949', GAL2='0.99', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630801350.57', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.17e-05', ts2='0.07', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='357' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:22:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 187949: <4FGL_J1156.6+0640_daily_bin357> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin357> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:22 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:23 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:06:23 2021
Terminated at Sat Sep  4 17:22:31 2021
Results reported at Sat Sep  4 17:22:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin357 179.164 6.6728 331862401 332121601 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 :                                   729.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

