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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin856
RA = 179.164, Dec = 6.6728
tmin = 461203201, tmax = 461462401
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='189934', job_status='RUN', time_executed='2021-09-04 17:14:55.468675', time_epoch_executed='1630800895.47' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189934

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189934/ft1_4FGL_J1156.6+0640_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189934/ft2_4FGL_J1156.6+0640_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189934/ft1_4FGL_J1156.6+0640_daily_bin856.fits outfile=/scratch/kocevski/189934/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin856.fits ra=179.164 dec=6.6728 rad=12.0 tmin=461203201.0 tmax=461462401.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 3.51
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189934/ft2_4FGL_J1156.6+0640_daily_bin856.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/189934/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin856.fits evtable="EVENTS" outfile="/scratch/kocevski/189934/ft1_filtered_4FGL_J1156.6+0640_daily_bin856.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.53
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189934/ft1_filtered_4FGL_J1156.6+0640_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/189934/ft2_4FGL_J1156.6+0640_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/189934/ltcube_461203201_461462401_4FGL_J1156.6+0640_daily_bin856.fits outfile=/scratch/kocevski/189934/expmap_461203201_461462401_4FGL_J1156.6+0640_daily_bin856.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/189934/ltcube_461203201_461462401_4FGL_J1156.6+0640_daily_bin856.fits
.....................!
real 192.19
user 187.48
sys 4.33

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/189934/ft1_filtered_4FGL_J1156.6+0640_daily_bin856.fits scfile=/scratch/kocevski/189934/ft2_4FGL_J1156.6+0640_daily_bin856.fits outfile=/scratch/kocevski/189934/cmap_461203201_461462401_4FGL_J1156.6+0640_daily_bin856.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5231       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12316E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.590       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6345       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    43.687       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3412       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .74818       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2494       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87295       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=   5485.700     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2643 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.610        12.404       -.15544E-06   -.19476E-04
   2  Prefactor     9.5211        24.071       -.13850E-05    .37324E-05
   3  Prefactor     .10000E-03    .85354       -.31706E-08** at limit **
   4  Prefactor     .10000E-03    6.8580       -.59397E-07** at limit **
   5  Prefactor     .10000E-03    59.997        .11645E-04** at limit **
   6  Prefactor     .10000E-03    4.1977       -.20849E-08** at limit **
   7  Prefactor     .10000E-03    2.3211       -.13382E-07** at limit **
   8  Prefactor     7.9644        17.401       -.49963E-06    .14008E-04
   9  Prefactor     .10000E-03    32.583       -.10386E-04** at limit **
  10  Prefactor     .10000E-03    23.658        .39683E-05** at limit **
  11  Prefactor     31.031        22.623       -.48812E-07    .62032E-04
  12  Prefactor     .10000E-03    1.3502       -.35883E-07** at limit **
  13  Prefactor     .10000E-03    1.9005       -.77110E-07** at limit **
  14  Prefactor     .10000E-03    12.331       -.10755E-06** at limit **
  15  Prefactor     25.593        13.139        .17355E-06    .17141E-03
  16  norm          .10000E-03    .96742       -.14916E-07** at limit **
  17  norm          1.6253        3.6963       -.11570E-04   -.16711E-02
  18  Prefactor     .10000E-03    8.3937        .19051E-05** at limit **
  19  norm          43.742        41.867        .50533E-04   -.52470E-03
  20  Prefactor     .10000E-03    36.929        .22184E-05** at limit **
  21  norm          1.2782        .58084       -.54172E-07    .32371E-02
  22  Prefactor     8.3418        8.0715       -.24612E-07    .39408E-04
  23  Prefactor     .10000E-03    8.4534       -.17911E-05** at limit **
  24  norm          .74851        1.6368       -.47501E-06   -.77154E-03
  25  Normalizat    1.2493        .20049        .29668E-05    .15053E-03
  26  Prefactor     .87313        .16980       -.23444E-05    .35505E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6097
  Prefactor  = 9.52108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.9644
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 31.0306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5926
  norm       = 0.0001
  norm       = 1.62531
  Prefactor  = 0.0001
  norm       = 43.7421
  Prefactor  = 0.0001
  norm       = 1.27816
  Prefactor  = 8.34182
  Prefactor  = 0.0001
  norm       = 0.74851
  Normalizat = 1.24926
  Prefactor  = 0.873129
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.700     FROM HESSE     STATUS=OK           446 CALLS     3089 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.610        12.407        .11280E-03   -1.4998    
   2  Prefactor     9.5211        24.067        .12986E-03   -1.5091    
   3  Prefactor     .10000E-03    .86080        .66800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    60.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2075        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3233        .11020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9644        17.511        .14209E-03   -1.5143    
   9  Prefactor     .10000E-03    32.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.031        22.622        .71927E-04   -1.4593    
  12  Prefactor     .10000E-03    1.3545        .84001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7586        .19757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.593        13.111        .79189E-04   -1.4696    
  16  norm          .10000E-03    .97013        .71006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6253        3.7180        .17987E-03   -1.5453    
  18  Prefactor     .10000E-03    8.3953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          43.742        42.085        .30327E-03   -1.4384    
  20  Prefactor     .10000E-03    36.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2782        .57257        .34996E-04   -1.5482    
  22  Prefactor     8.3418        8.0724        .13881E-03   -1.5130    
  23  Prefactor     .10000E-03    8.4563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .74851        1.6154        .13210E-03   -1.5535    
  25  Normalizat    1.2493        .23345        .24569E-03   -.85094    
  26  Prefactor     .87313        .19758        .25359E-03   -.97086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28478e-09
Minuit parameter uncertainties:
  1  12.4099
  2  24.0919
  3  9.65562e-07
  4  6.52506e-07
  5  0.000550337
  6  4.09828e-07
  7  2.57321e-06
  8  17.5224
  9  0.000372407
  10  3.51393e-05
  11  22.6279
  12  9.56746e-07
  13  1.67073e-05
  14  6.89535e-05
  15  13.1122
  16  5.58665e-07
  17  3.71858
  18  2.68208e-05
  19  42.1136
  20  6.85479e-05
  21  0.572576
  22  8.07348
  23  3.22582e-05
  24  1.61544
  25  0.233649
  26  0.197744
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.503e-04  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:  8.731e-01  1.977e-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.249e+00  2.336e-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: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189934/likelihoodResults_461203201_461462401_4FGL_J1156.6+0640_daily_bin856.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) = 5485.7005338
delta logL = -7.93004446678e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5485.70045614
delta logL = -1.64498760569e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19837E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6460       1.0000          .0000       10.000    
     3 'Normalizat'    1.2493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87313       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=   5485.700     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10489E-03    16.414        .18142E-01** at limit **
   2  Index         2.5372        6.3266        .50000        .65445E-05
   3  Normalizat    1.2493        .29709E-02    .24568E-03   -.17449E-03
   4  Prefactor     .87313        .26291E-02    .25359E-03    .13458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104888
  Index      = 2.53715
  Normalizat = 1.24926
  Prefactor  = 0.873129
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.700     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10489E-03    184.94        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5372        7.4742        .50000       -.51504    
   3  Normalizat    1.2493        .10017E-01    .49137E-04   -.85094    
   4  Prefactor     .87313        .88643E-02    .10144E-04   -.97086    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89815e-09
Minuit parameter uncertainties:
  1  0.060318
  2  451.14
  3  0.0100168
  4  0.00886431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189934': 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) = 5485.70045479
delta logL = -2.9301372706e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.049e-04  6.032e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.537e+00  4.511e+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:  8.731e-01  8.864e-03  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.249e+00  1.002e-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/189934/cmap_HighResolution_461203201_461462401_4FGL_J1156.6+0640_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-04 17:26:28.377694', job_id='189934', GAL2='0.87', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630801588.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-2.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='856' 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@bullet0236>
Subject: Job 189934: <4FGL_J1156.6+0640_daily_bin856> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin856> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:44 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:46 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:46 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_bin856 179.164 6.6728 461203201 461462401 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 :                                   692.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

