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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin970
RA = 179.164, Dec = 6.6728
tmin = 490752001, tmax = 491011201
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='191379', job_status='RUN', time_executed='2021-09-04 17:20:22.922957', time_epoch_executed='1630801222.92' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191379/ft1_4FGL_J1156.6+0640_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191379/ft2_4FGL_J1156.6+0640_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191379/ft1_4FGL_J1156.6+0640_daily_bin970.fits outfile=/scratch/kocevski/191379/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin970.fits ra=179.164 dec=6.6728 rad=12.0 tmin=490752001.0 tmax=491011201.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.84
user 5.56
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191379/ft1_filtered_4FGL_J1156.6+0640_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/191379/ft2_4FGL_J1156.6+0640_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/191379/ltcube_490752001_491011201_4FGL_J1156.6+0640_daily_bin970.fits outfile=/scratch/kocevski/191379/expmap_490752001_491011201_4FGL_J1156.6+0640_daily_bin970.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/191379/ltcube_490752001_491011201_4FGL_J1156.6+0640_daily_bin970.fits
.....................!
real 190.81
user 185.70
sys 4.74

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/191379/ft1_filtered_4FGL_J1156.6+0640_daily_bin970.fits scfile=/scratch/kocevski/191379/ft2_4FGL_J1156.6+0640_daily_bin970.fits outfile=/scratch/kocevski/191379/cmap_490752001_491011201_4FGL_J1156.6+0640_daily_bin970.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/191379/ft1_filtered_4FGL_J1156.6+0640_daily_bin970.fits scfile=/scratch/kocevski/191379/ft2_4FGL_J1156.6+0640_daily_bin970.fits outfile=/scratch/kocevski/191379/cmap_HighResolution_490752001_491011201_4FGL_J1156.6+0640_daily_bin970.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/191379/ft1_filtered_4FGL_J1156.6+0640_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/191379/ft2_4FGL_J1156.6+0640_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191379/Model_4FGL_J1156.6+0640_daily_bin970.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/191379/ft1_filtered_4FGL_J1156.6+0640_daily_bin970.fits.....................!
real 47.66
user 45.84
sys 1.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.996       1.0000         .10000E-03   10000.    
     2 'Prefactor '    129.70       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5087       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15192E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.452       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0015       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.300       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12266E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8540       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3880       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1362       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.620       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4684       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .60268       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0902       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=   4841.436     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2645 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.003        12.652       -.54288E-07    .35256E-02
   2  Prefactor     129.54        24.837       -.18451E-05   -.29415E-01
   3  Prefactor     1.6056        1.3204        .88345E-07    .70699E-04
   4  Prefactor     5.5069        3.5228       -.17687E-06   -.14968E-02
   5  Prefactor     .10266E-03    287.89       -.19131E-04** at limit **
   6  Prefactor     10.517        16.535        .25474E-05    .10595E-02
   7  Prefactor     4.9997        7.2547       -.49900E-06   -.39274E-04
   8  Prefactor     11.720        25.769        .39580E-05   -.48237E-02
   9  Prefactor     3.2936        1407.5       -.64551E-04    .51948E-03
  10  Prefactor     64.294        1.4374       -.87514E-07    .11159E-02
  11  Prefactor     7.2776        2.5801        .41113E-08   -.15237E-03
  12  Prefactor     8.7048        6.3710        .35428E-07    .56409E-04
  13  Prefactor     .10000E-03    4.8730       -.16355E-06** at limit **
  14  Prefactor     9.2725        3.4424       -.25503E-07   -.73723E-03
  15  Prefactor     .10000E-03    7.1344       -.58197E-06** at limit **
  16  norm          2.8533        2.3194        .25954E-07   -.78385E-05
  17  norm          2.3874        2.5414        .21561E-06    .70337E-04
  18  Prefactor     .10000E-03    29.598        .10597E-05** at limit **
  19  norm          .10000E-03    18.341        .54986E-06** at limit **
  20  Prefactor     .10000E-03    81.280        .13427E-05** at limit **
  21  norm          2.1360        .66660       -.28675E-07   -.15838E-03
  22  Prefactor     .10000E-03    12.202        .68179E-07** at limit **
  23  Prefactor     17.639        3.7436        .52441E-06    .14158E-02
  24  norm          2.4679        1.9890        .23122E-06    .13186E-03
  25  Normalizat    .60288        .24404       -.12210E-05   -.46513E-04
  26  Prefactor     1.0902        .20768        .21709E-06   -.50774E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.003
  Prefactor  = 129.543
  Prefactor  = 1.60556
  Prefactor  = 5.50688
  Prefactor  = 0.000102659
  Prefactor  = 10.5172
  Prefactor  = 4.99971
  Prefactor  = 11.7203
  Prefactor  = 3.29356
  Prefactor  = 64.2944
  Prefactor  = 7.27758
  Prefactor  = 8.70476
  Prefactor  = 0.0001
  Prefactor  = 9.27248
  Prefactor  = 0.0001
  norm       = 2.85328
  norm       = 2.38744
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.136
  Prefactor  = 0.0001
  Prefactor  = 17.6394
  norm       = 2.46786
  Normalizat = 0.602884
  Prefactor  = 1.09019
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.436     FROM HESSE     STATUS=OK           518 CALLS     3163 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.003        13.263        .24287E-02   -1.4883    
   2  Prefactor     129.54        60.162        .88382E-03   -1.3427    
   3  Prefactor     1.6056        1.3153        .83603E-02   -1.5455    
   4  Prefactor     5.5069        14.268        .42797E-02   -1.5239    
   5  Prefactor     .10266E-03    290.84        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.517        17.482        .30984E-02   -1.5059    
   7  Prefactor     4.9997        7.3724        .44954E-02   -1.5261    
   8  Prefactor     11.720        29.547        .29362E-02   -1.5023    
   9  Prefactor     3.2936        1864.2        .48850E-02   -1.5345    
  10  Prefactor     64.294        43.991        .12512E-02   -1.4103    
  11  Prefactor     7.2776        13.186        .37171E-02   -1.5168    
  12  Prefactor     8.7048        6.4284        .33976E-02   -1.5118    
  13  Prefactor     .10000E-03    4.7766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2725        22.588        .32897E-02   -1.5099    
  15  Prefactor     .10000E-03    7.1010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8533        2.3265        .60164E-02   -1.5370    
  17  norm          2.3874        2.5800        .66261E-02   -1.5399    
  18  Prefactor     .10000E-03    29.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    81.266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1360        .66889        .67340E-02   -1.5416    
  22  Prefactor     .10000E-03    12.119        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.639        41.010        .23854E-02   -1.4868    
  24  norm          2.4679        2.0024        .65068E-02   -1.5394    
  25  Normalizat    .60288        .22848        .72951E-01   -1.0786    
  26  Prefactor     1.0902        .18507        .37972E-01   -.89781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10622e-06
Minuit parameter uncertainties:
  1  13.2649
  2  60.1909
  3  1.31528
  4  14.2767
  5  0.0558919
  6  17.4904
  7  7.37375
  8  29.5838
  9  162.073
  10  44.0135
  11  13.1912
  12  6.42888
  13  3.83155e-06
  14  22.6088
  15  1.7861e-05
  16  2.32655
  17  2.5801
  18  4.63907e-05
  19  2.51487e-05
  20  0.00113584
  21  0.668889
  22  1.52519e-06
  23  41.0753
  24  2.00241
  25  0.228836
  26  0.185182
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.027e-04  5.589e-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.090e+00  1.852e-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:  6.029e-01  2.288e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191379/likelihoodResults_490752001_491011201_4FGL_J1156.6+0640_daily_bin970.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) = 4841.4358215
delta logL = -1.61896323334e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4841.43580597
delta logL = -6.53169081488e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41718E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2975       1.0000          .0000       10.000    
     3 'Normalizat'    .60288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0902       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.

 FCN=   4841.436     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      236 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    7512.5        .10622E-01** at limit **
   2  Index         2.3026        7.7178        .50000       -.57705E-05
   3  Normalizat    .60288        .26445E-01    .72951E-01   -.15621E-03
   4  Prefactor     1.0902        .23623E-01    .37972E-01    .12971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100217
  Index      = 2.30256
  Normalizat = 0.602878
  Prefactor  = 1.0902
 **********
 **   18 **HESSE 
 **********

 FCN=   4841.436     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    9950.5        .21244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3026        7.9839        .50000       -.56983    
   3  Normalizat    .60288        .53900E-01    .32294E-03   -1.0786    
   4  Prefactor     1.0902        .48254E-01    .21838E-03   -.89781    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.28904e-08
Minuit parameter uncertainties:
  1  0.136899
  2  40.2806
  3  0.0539052
  4  0.0482558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191379': 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) = 4841.43580533
delta logL = -1.79043126991e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.002e-04  1.369e-01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.303e+00  4.028e+01  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.090e+00  4.826e-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:  6.029e-01  5.391e-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/191379/cmap_HighResolution_490752001_491011201_4FGL_J1156.6+0640_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-04 17:31:10.343289', job_id='191379', GAL2='1.09', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1630801870.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-1.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='970' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:31:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 191379: <4FGL_J1156.6+0640_daily_bin970> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin970> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:16:32 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:16:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:16:34 2021
Terminated at Sat Sep  4 17:31:10 2021
Results reported at Sat Sep  4 17:31:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin970 179.164 6.6728 490752001 491011201 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 :                                   646.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             225.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

