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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin670
RA = 179.164, Dec = 6.6728
tmin = 412992001, tmax = 413251201
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='189641', job_status='RUN', time_executed='2021-09-04 17:15:01.633652', time_epoch_executed='1630800901.63' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189641/ft1_4FGL_J1156.6+0640_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189641/ft2_4FGL_J1156.6+0640_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189641/ft1_4FGL_J1156.6+0640_daily_bin670.fits outfile=/scratch/kocevski/189641/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin670.fits ra=179.164 dec=6.6728 rad=12.0 tmin=412992001.0 tmax=413251201.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.55
user 3.30
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189641/ft1_filtered_4FGL_J1156.6+0640_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/189641/ft2_4FGL_J1156.6+0640_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/189641/ltcube_412992001_413251201_4FGL_J1156.6+0640_daily_bin670.fits outfile=/scratch/kocevski/189641/expmap_412992001_413251201_4FGL_J1156.6+0640_daily_bin670.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/189641/ltcube_412992001_413251201_4FGL_J1156.6+0640_daily_bin670.fits
.....................!
real 190.34
user 185.32
sys 4.65

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/189641/ft1_filtered_4FGL_J1156.6+0640_daily_bin670.fits scfile=/scratch/kocevski/189641/ft2_4FGL_J1156.6+0640_daily_bin670.fits outfile=/scratch/kocevski/189641/cmap_412992001_413251201_4FGL_J1156.6+0640_daily_bin670.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189641/ft1_filtered_4FGL_J1156.6+0640_daily_bin670.fits scfile=/scratch/kocevski/189641/ft2_4FGL_J1156.6+0640_daily_bin670.fits outfile=/scratch/kocevski/189641/cmap_HighResolution_412992001_413251201_4FGL_J1156.6+0640_daily_bin670.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/189641/ft1_filtered_4FGL_J1156.6+0640_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/189641/ft2_4FGL_J1156.6+0640_daily_bin670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189641/Model_4FGL_J1156.6+0640_daily_bin670.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/189641/ft1_filtered_4FGL_J1156.6+0640_daily_bin670.fits......................!
real 21.79
user 20.44
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.293       1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.408       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95444E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6159       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.150       1.0000         .10000E-03   10000.    
    23 'Prefactor '    63.569       1.0000         .10000E-03   10000.    
    24 'norm      '    17.449       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77678       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=   1110.340     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     3049 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.466        1.2437        .42786E-08    .94298E-03
   2  Prefactor     29.127        1.0068        .28452E-08    .17692E-04
   3  Prefactor     .10000E-03    11.941       -.75753E-06** at limit **
   4  Prefactor     .10481E-03    20.118       -.85303E-06** at limit **
   5  Prefactor     .10233E-03    26.780       -.16314E-05** at limit **
   6  Prefactor     12.078        2.2691        .11016E-06   -.25956E-02
   7  Prefactor     14.296        1.0337        .16547E-07    .25686E-04
   8  Prefactor     49.324        9.8574       -.36128E-06    .14270E-01
   9  Prefactor     .41000E-03    3.8759       -.10186E-05** at limit **
  10  Prefactor     .10027E-03    20.797        .13928E-05** at limit **
  11  Prefactor     .10076E-03    31.609       -.20271E-05** at limit **
  12  Prefactor     7.6282        5.4926       -.19350E-06   -.31105E-03
  13  Prefactor     .10000E-03    1.9009       -.78214E-06** at limit **
  14  Prefactor     .10000E-03    26.889       -.48869E-06** at limit **
  15  Prefactor     .10022E-03    41.262       -.18755E-06** at limit **
  16  norm          .10000E-03    10.294        .13675E-05** at limit **
  17  norm          .10000E-03    5.5148        .90302E-06** at limit **
  18  Prefactor     .10069E-03    20.912        .14402E-05** at limit **
  19  norm          .10074E-03    20.918        .14446E-05** at limit **
  20  Prefactor     .10006E-03    38.627       -.25010E-05** at limit **
  21  norm          1.6163        2.2902        .11473E-05    .12074E-02
  22  Prefactor     22.153        1.0172       -.57457E-08    .50418E-04
  23  Prefactor     63.573        1.1525        .19443E-07   -.14365E-02
  24  norm          17.449        1.7231        .59079E-07   -.91770E-02
  25  Normalizat    .10000E-01    2.1855        .14170E-04** at limit **
  26  Prefactor     .77698        .15546       -.24641E-06   -.52127E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 27.4664
  Prefactor  = 29.1266
  Prefactor  = 0.0001
  Prefactor  = 0.000104813
  Prefactor  = 0.000102334
  Prefactor  = 12.0778
  Prefactor  = 14.2961
  Prefactor  = 49.3242
  Prefactor  = 0.000410003
  Prefactor  = 0.000100275
  Prefactor  = 0.000100763
  Prefactor  = 7.62821
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100223
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100686
  norm       = 0.000100744
  Prefactor  = 0.000100063
  norm       = 1.61628
  Prefactor  = 22.153
  Prefactor  = 63.5726
  norm       = 17.4493
  Normalizat = 0.01
  Prefactor  = 0.776983
 **********
 **   18 **HESSE 
 **********

 FCN=   1110.340     FROM HESSE     STATUS=OK           508 CALLS     3557 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.466        27.226        .19116E-02   -1.4659    
   2  Prefactor     29.127        79.608        .18560E-02   -1.4628    
   3  Prefactor     .10000E-03    11.925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10481E-03    102.66        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10233E-03    114.64        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.078        24.989        .28783E-02   -1.5013    
   7  Prefactor     14.296        30.033        .26486E-02   -1.4952    
   8  Prefactor     49.324        38.755        .14263E-02   -1.4302    
   9  Prefactor     .41000E-03    843.21        .10396E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10027E-03    67.192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10076E-03    121.44        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6282        5.6184        .36308E-02   -1.5156    
  13  Prefactor     .10000E-03    1.8949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10022E-03    42.234        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.5100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10069E-03    64.915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10074E-03    64.870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10006E-03    130.63        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6163        2.4504        .83267E-02   -1.5454    
  22  Prefactor     22.153        19.892        .21277E-02   -1.4766    
  23  Prefactor     63.573        49.153        .12583E-02   -1.4112    
  24  norm          17.449        8.0435        .23970E-02   -1.4872    
  25  Normalizat    .10000E-01    .84325        .18183       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .77698        .22264        .43414E-01   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1864e-06
Minuit parameter uncertainties:
  1  27.2387
  2  79.9005
  3  0.000146944
  4  0.0445314
  5  0.0327777
  6  25.011
  7  30.0647
  8  38.775
  9  1.03749
  10  0.00860284
  11  0.0192972
  12  5.61884
  13  3.00263e-05
  14  0.00023786
  15  0.00613894
  16  0.00015488
  17  6.02968e-05
  18  0.0133646
  19  0.0139124
  20  0.00577152
  21  2.45053
  22  19.8975
  23  49.1843
  24  8.04402
  25  1.1402e-05
  26  0.222894
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.023e-04  3.278e-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:  7.770e-01  2.229e-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.000e-02  1.140e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 2.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189641/likelihoodResults_412992001_413251201_4FGL_J1156.6+0640_daily_bin670.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) = 1110.34033432
delta logL = -4.34114285781e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1110.34033429
delta logL = -4.33829372923e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96334E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3183       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77698       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=   1110.340     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      226 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    135.93        .90715E-02** at limit **
   2  Index         2.3026        6.1368        .50000        .11645E-05
   3  Normalizat    .10000E-01    .53646        .18216    ** at limit **
   4  Prefactor     .77698        .20475        .43417E-01   -.26801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.30264
  Normalizat = 0.01
  Prefactor  = 0.776982
 **********
 **   18 **HESSE 
 **********

 FCN=   1110.340     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      255 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7849.8        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3026        7.3150        .20000       -.56981    
   3  Normalizat    .10000E-01    .32752        .11791E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77698        .56684E-01    .18176E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10913e-05
Minuit parameter uncertainties:
  1  0.00931032
  2  12154.1
  3  2.79467e-05
  4  0.0566884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189641': 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) = 1110.34029089
delta logL = 1.43681972986e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  9.310e-03  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.303e+00  1.215e+04  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:  7.770e-01  5.669e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.000e-02  2.795e-05  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/189641/cmap_HighResolution_412992001_413251201_4FGL_J1156.6+0640_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', job_status='DONE', photon_flux_upper_limit='2.06e-07', time_completed='2021-09-04 17:21:35.289442', job_id='189641', GAL2='0.78', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630801295.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='670' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 189641: <4FGL_J1156.6+0640_daily_bin670> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin670> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:20 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:22 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:22 2021
Terminated at Sat Sep  4 17:21:36 2021
Results reported at Sat Sep  4 17:21:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin670 179.164 6.6728 412992001 413251201 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 :                                   393.45 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             250.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            616 sec.

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

