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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin844
RA = 179.164, Dec = 6.6728
tmin = 458092801, tmax = 458352001
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='189912', job_status='RUN', time_executed='2021-09-04 17:14:36.369082', time_epoch_executed='1630800876.37' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189912

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189912/ft1_4FGL_J1156.6+0640_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189912/ft2_4FGL_J1156.6+0640_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189912/ft1_4FGL_J1156.6+0640_daily_bin844.fits outfile=/scratch/kocevski/189912/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin844.fits ra=179.164 dec=6.6728 rad=12.0 tmin=458092801.0 tmax=458352001.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.59
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189912/ft2_4FGL_J1156.6+0640_daily_bin844.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/189912/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin844.fits evtable="EVENTS" outfile="/scratch/kocevski/189912/ft1_filtered_4FGL_J1156.6+0640_daily_bin844.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/189912/ft1_filtered_4FGL_J1156.6+0640_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/189912/ft2_4FGL_J1156.6+0640_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/189912/ltcube_458092801_458352001_4FGL_J1156.6+0640_daily_bin844.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/189912/ft2_4FGL_J1156.6+0640_daily_bin844.fits
.....................!
real 12.53
user 11.97
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189912/ft1_filtered_4FGL_J1156.6+0640_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/189912/ft2_4FGL_J1156.6+0640_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/189912/ltcube_458092801_458352001_4FGL_J1156.6+0640_daily_bin844.fits outfile=/scratch/kocevski/189912/expmap_458092801_458352001_4FGL_J1156.6+0640_daily_bin844.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/189912/ltcube_458092801_458352001_4FGL_J1156.6+0640_daily_bin844.fits
.....................!
real 190.78
user 185.26
sys 5.02

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/189912/ft1_filtered_4FGL_J1156.6+0640_daily_bin844.fits scfile=/scratch/kocevski/189912/ft2_4FGL_J1156.6+0640_daily_bin844.fits outfile=/scratch/kocevski/189912/cmap_458092801_458352001_4FGL_J1156.6+0640_daily_bin844.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189912/ft1_filtered_4FGL_J1156.6+0640_daily_bin844.fits scfile=/scratch/kocevski/189912/ft2_4FGL_J1156.6+0640_daily_bin844.fits outfile=/scratch/kocevski/189912/cmap_HighResolution_458092801_458352001_4FGL_J1156.6+0640_daily_bin844.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11817E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.259       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.255       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.287       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16375E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.800       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26662E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1763       1.0000         .10000E-03   10000.    
    17 'norm      '    9.9025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5970       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.738       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .50482       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83805       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=   6444.527     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3110 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.265       -.41299E-06** at limit **
   2  Prefactor     47.221        43.864       -.76252E-06   -.41103E-04
   3  Prefactor     .24233        1.5355        .21716E-05    .34957E-03
   4  Prefactor     20.253        16.420       -.12804E-06   -.13041E-04
   5  Prefactor     14.113        124.81       -.65973E-05   -.43385E-04
   6  Prefactor     .10000E-03    12.756       -.32165E-05** at limit **
   7  Prefactor     .10000E-03    2.3720       -.34076E-07** at limit **
   8  Prefactor     24.770        22.814       -.46530E-06    .14689E-04
   9  Prefactor     .10000E-03    74.743       -.12782E-05** at limit **
  10  Prefactor     .10000E-03    16.287       -.52040E-06** at limit **
  11  Prefactor     31.947        19.425       -.17589E-06   -.20408E-04
  12  Prefactor     3.0964        4.0114        .10069E-06    .31928E-04
  13  Prefactor     .10000E-03    1.3917        .12893E-06** at limit **
  14  Prefactor     .10000E-03    23.569        .35776E-07** at limit **
  15  Prefactor     .10000E-03    12.816        .63363E-06** at limit **
  16  norm          2.1776        1.8053        .72683E-08   -.95158E-04
  17  norm          9.9008        4.4910       -.18354E-06   -.14347E-03
  18  Prefactor     .10000E-03    21.818        .38312E-06** at limit **
  19  norm          .10000E-03    23.455        .78391E-07** at limit **
  20  Prefactor     .10000E-03    62.084        .28473E-06** at limit **
  21  norm          1.5970        .64195       -.83669E-07   -.73934E-03
  22  Prefactor     10.738        8.5109        .19513E-07   -.82018E-05
  23  Prefactor     .10000E-03    11.848        .23964E-06** at limit **
  24  norm          .50453        1.2283        .90854E-06    .54305E-03
  25  Normalizat    1.2251        .22729        .54605E-05   -.33523E-03
  26  Prefactor     .83770        .18317       -.61224E-05    .99805E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 47.2208
  Prefactor  = 0.242325
  Prefactor  = 20.2529
  Prefactor  = 14.1127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9469
  Prefactor  = 3.09641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17756
  norm       = 9.90076
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59696
  Prefactor  = 10.7378
  Prefactor  = 0.0001
  norm       = 0.504533
  Normalizat = 1.22514
  Prefactor  = 0.837703
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.527     FROM HESSE     STATUS=OK           452 CALLS     3562 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.221        43.918        .58327E-04   -1.4333    
   3  Prefactor     .24233        1.6097        .19454E-03   -1.5610    
   4  Prefactor     20.253        16.421        .88995E-04   -1.4808    
   5  Prefactor     14.113        127.14        .10597E-03   -1.4956    
   6  Prefactor     .10000E-03    12.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3787        .12073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.770        22.823        .80439E-04   -1.4712    
   9  Prefactor     .10000E-03    74.833        .21439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.947        19.419        .70888E-04   -1.4577    
  12  Prefactor     3.0964        4.0019        .17622E-03   -1.5356    
  13  Prefactor     .10000E-03    1.3994        .92408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1776        1.8002        .94865E-04   -1.5413    
  17  norm          9.9008        4.5018        .10126E-03   -1.5079    
  18  Prefactor     .10000E-03    21.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    23.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    62.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5970        .63786        .36169E-04   -1.5455    
  22  Prefactor     10.738        8.5107        .12227E-03   -1.5052    
  23  Prefactor     .10000E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .50453        1.2110        .13427E-03   -1.5566    
  25  Normalizat    1.2251        .24309        .26180E-03   -.85829    
  26  Prefactor     .83770        .19467        .26205E-03   -.98353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69673e-10
Minuit parameter uncertainties:
  1  8.37848e-06
  2  43.9483
  3  1.24891
  4  16.4243
  5  84.9595
  6  0.000121861
  7  5.51958e-07
  8  22.831
  9  7.65978e-05
  10  6.41268e-06
  11  19.4226
  12  4.0022
  13  4.49731e-07
  14  2.42435e-05
  15  3.08705e-05
  16  1.80026
  17  4.50192
  18  2.26037e-05
  19  2.05549e-05
  20  7.30619e-05
  21  0.637862
  22  8.51162
  23  1.64783e-05
  24  1.21102
  25  0.243315
  26  0.194831
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.411e+01  8.496e+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:  8.377e-01  1.948e-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.225e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189912/likelihoodResults_458092801_458352001_4FGL_J1156.6+0640_daily_bin844.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) = 6444.50282862
delta logL = 0.0239737296897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6444.46828827
delta logL = 0.0585140793983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3832       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0701       1.0000          .0000       10.000    
     3 'Normalizat'    1.1998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85321       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=   6444.468     FROM MIGRAD    STATUS=FAILED       103 CALLS      292 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3396        431.78        .23217E-03   -.28596E-04
   2  Index         4.0875        6.2438        .77381E-02    .23112E-03
   3  Normalizat    1.1999        .17175        .26423E-03   -.16307E-04
   4  Prefactor     .85289        .14159        .26000E-03   -.11587E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6444.468     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      383 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3396        431.78        .19144E-03   -.28596E-04
   2  Index         4.0875        6.2438        .19537E-02    .23112E-03
   3  Normalizat    1.1999        .17175        .14217E-03   -.16307E-04
   4  Prefactor     .85289        .14159        .85615E-04   -.11587E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6444.468     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      414 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3395        445.73        .92870E-05   -.32318E-04
   2  Index         4.0875        6.3860        .15476E-02   -.37171E-05
   3  Normalizat    1.1999        .23532        .10569E-04   -.16565E-04
   4  Prefactor     .85289        .19507        .10400E-04   -.13555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33953
  Index      = 4.08755
  Normalizat = 1.19988
  Prefactor  = 0.852892
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.468     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3395        86.943        .18574E-05   -1.5476    
   2  Index         4.0875        7.0363        .61904E-04   -.18352    
   3  Normalizat    1.1999        .24242        .21138E-05   -.86606    
   4  Prefactor     .85289        .19952        .20800E-05   -.97807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01538e-12
Minuit parameter uncertainties:
  1  21.6156
  2  7.20103
  3  0.242645
  4  0.199692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189912': 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) = 6444.46827863
delta logL = 0.0585237110399

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.340e+00  2.162e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  4.088e+00  7.201e+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:  8.529e-01  1.997e-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.200e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/189912/cmap_HighResolution_458092801_458352001_4FGL_J1156.6+0640_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2021-09-04 17:27:36.813397', job_id='189912', GAL2='0.85', fit_tolerance='1e-08', EG2='1.20', EG='1.23', time_epoch_completed='1630801656.81', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='5.85e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='844' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:27:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 189912: <4FGL_J1156.6+0640_daily_bin844> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin844> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:43 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:45 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:45 2021
Terminated at Sat Sep  4 17:27:37 2021
Results reported at Sat Sep  4 17:27:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin844 179.164 6.6728 458092801 458352001 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 :                                   778.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

