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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin198
RA = 179.164, Dec = 6.6728
tmin = 290649601, tmax = 290908801
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='186686', job_status='RUN', time_executed='2021-09-04 17:03:36.105733', time_epoch_executed='1630800216.11' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186686

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186686/ft1_4FGL_J1156.6+0640_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186686/ft2_4FGL_J1156.6+0640_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186686/ft1_4FGL_J1156.6+0640_daily_bin198.fits outfile=/scratch/kocevski/186686/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin198.fits ra=179.164 dec=6.6728 rad=12.0 tmin=290649601.0 tmax=290908801.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.36
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/186686/ft2_4FGL_J1156.6+0640_daily_bin198.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/186686/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin198.fits evtable="EVENTS" outfile="/scratch/kocevski/186686/ft1_filtered_4FGL_J1156.6+0640_daily_bin198.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/186686/ft1_filtered_4FGL_J1156.6+0640_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/186686/ft2_4FGL_J1156.6+0640_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/186686/ltcube_290649601_290908801_4FGL_J1156.6+0640_daily_bin198.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/186686/ft2_4FGL_J1156.6+0640_daily_bin198.fits
.....................!
real 11.85
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186686/ft1_filtered_4FGL_J1156.6+0640_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/186686/ft2_4FGL_J1156.6+0640_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/186686/ltcube_290649601_290908801_4FGL_J1156.6+0640_daily_bin198.fits outfile=/scratch/kocevski/186686/expmap_290649601_290908801_4FGL_J1156.6+0640_daily_bin198.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/186686/ltcube_290649601_290908801_4FGL_J1156.6+0640_daily_bin198.fits
.....................!
real 190.97
user 186.42
sys 4.17

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/186686/ft1_filtered_4FGL_J1156.6+0640_daily_bin198.fits scfile=/scratch/kocevski/186686/ft2_4FGL_J1156.6+0640_daily_bin198.fits outfile=/scratch/kocevski/186686/cmap_290649601_290908801_4FGL_J1156.6+0640_daily_bin198.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186686/ft1_filtered_4FGL_J1156.6+0640_daily_bin198.fits scfile=/scratch/kocevski/186686/ft2_4FGL_J1156.6+0640_daily_bin198.fits outfile=/scratch/kocevski/186686/cmap_HighResolution_290649601_290908801_4FGL_J1156.6+0640_daily_bin198.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.735       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0381       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13050E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8582       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.149       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.955       1.0000         .10000E-03   10000.    
    24 'norm      '    .73383E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .59017       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2764       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=   6030.033     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3132 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.734        14.521       -.11636E-06   -.11575E-04
   2  Prefactor     .10000E-03    11.692        .60998E-06** at limit **
   3  Prefactor     6.0380        3.1478       -.68040E-07   -.95475E-04
   4  Prefactor     37.834        27.356       -.53357E-06    .45578E-05
   5  Prefactor     .10000E-03    95.068       -.71126E-04** at limit **
   6  Prefactor     11.968        11.519       -.62983E-06    .11762E-03
   7  Prefactor     .10000E-03    5.6327        .23449E-06** at limit **
   8  Prefactor     21.117        16.324       -.11844E-06    .39113E-04
   9  Prefactor     .10000E-03    45.373       -.31164E-04** at limit **
  10  Prefactor     50.664        40.661       -.31279E-05    .32651E-04
  11  Prefactor     12.951        20.093        .89803E-07    .10262E-04
  12  Prefactor     .10018E-03    2.9926        .41855E-06** at limit **
  13  Prefactor     5.8568        3.8781       -.21966E-06   -.45402E-03
  14  Prefactor     .10000E-03    8.8822        .22866E-05** at limit **
  15  Prefactor     .10000E-03    9.1497       -.39691E-05** at limit **
  16  norm          .10000E-03    1.6028       -.10266E-06** at limit **
  17  norm          10.867        4.9696        .60013E-06   -.76009E-03
  18  Prefactor     .10000E-03    10.624        .97631E-06** at limit **
  19  norm          .10000E-03    74.367        .37577E-04** at limit **
  20  Prefactor     .10000E-03    54.980        .45051E-04** at limit **
  21  norm          12.149        1.3079       -.42826E-07   -.96862E-03
  22  Prefactor     .10000E-03    5.0062       -.69404E-07** at limit **
  23  Prefactor     11.958        24.416        .88921E-06   -.19604E-04
  24  norm          .65854E-01    .85315        .23722E-06   -.12815E-02
  25  Normalizat    .59014        .22964        .77397E-07   -.40354E-04
  26  Prefactor     1.2765        .19512       -.78069E-07   -.28947E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.7337
  Prefactor  = 0.0001
  Prefactor  = 6.03796
  Prefactor  = 37.8336
  Prefactor  = 0.0001
  Prefactor  = 11.968
  Prefactor  = 0.0001
  Prefactor  = 21.1167
  Prefactor  = 0.0001
  Prefactor  = 50.6643
  Prefactor  = 12.9509
  Prefactor  = 0.000100184
  Prefactor  = 5.85679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.8666
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.1493
  Prefactor  = 0.0001
  Prefactor  = 11.9578
  norm       = 0.0658539
  Normalizat = 0.590143
  Prefactor  = 1.27649
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.033     FROM HESSE     STATUS=OK           458 CALLS     3590 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.734        14.518        .80544E-04   -1.4713    
   2  Prefactor     .10000E-03    11.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0380        3.1448        .94991E-04   -1.5216    
   4  Prefactor     37.834        27.351        .65159E-04   -1.4477    
   5  Prefactor     .10000E-03    95.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.968        11.512        .11579E-03   -1.5016    
   7  Prefactor     .10000E-03    5.6763        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.117        16.325        .87161E-04   -1.4789    
   9  Prefactor     .10000E-03    45.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.664        40.626        .56340E-04   -1.4283    
  11  Prefactor     12.951        20.073        .11130E-03   -1.4988    
  12  Prefactor     .10018E-03    96.570        .23777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8568        3.6638        .11191E-03   -1.5224    
  14  Prefactor     .10000E-03    8.8837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6356        .95952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.867        4.9617        .10807E-03   -1.5049    
  18  Prefactor     .10000E-03    10.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    74.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    55.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.149        1.3085        .26681E-04   -1.5011    
  22  Prefactor     .10000E-03    5.0278        .16954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.958        24.394        .11586E-03   -1.5016    
  24  norm          .65854E-01    8.9073        .13692E-02   -1.5657    
  25  Normalizat    .59014        .25706        .38289E-03   -1.0840    
  26  Prefactor     1.2765        .22393        .24479E-03   -.84009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94169e-09
Minuit parameter uncertainties:
  1  14.5196
  2  1.3159e-06
  3  3.14486
  4  27.3605
  5  0.000262886
  6  11.5138
  7  1.56584e-05
  8  16.3286
  9  3.83439e-05
  10  40.6479
  11  20.0831
  12  0.00845436
  13  3.6639
  14  3.44016e-06
  15  8.55065e-06
  16  2.25949e-06
  17  4.96184
  18  2.40113e-06
  19  0.000406357
  20  1.34248e-05
  21  1.30851
  22  5.18648e-06
  23  24.4148
  24  1.53084
  25  0.257582
  26  0.224095
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.629e-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:  1.276e+00  2.241e-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:  5.901e-01  2.576e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186686/likelihoodResults_290649601_290908801_4FGL_J1156.6+0640_daily_bin198.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) = 6030.0335089
delta logL = -4.99322450196e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6030.03345905
delta logL = -7.62529452913e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11091E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2768       1.0000          .0000       10.000    
     3 'Normalizat'    .59014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2765       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=   6030.033     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7446.2        .90712E-02** at limit **
   2  Index         2.2946        5.2488        .50000       -.16999E-05
   3  Normalizat    .59014        .46515E-01    .86428E-01    .53060E-04
   4  Prefactor     1.2765        .42497E-01    .55368E-01    .23358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.29458
  Normalizat = 0.590144
  Prefactor  = 1.27649
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.033     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9574.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2946        6.1173        .50000       -.57173    
   3  Normalizat    .59014        .10078        .38289E-03   -1.0840    
   4  Prefactor     1.2765        .92331E-01    .24479E-03   -.84009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.77823e-09
Minuit parameter uncertainties:
  1  0.0197101
  2  56.3882
  3  0.100812
  4  0.0923424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186686': 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) = 6030.03345898
delta logL = -9.66610969044e-09

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.971e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.295e+00  5.639e+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.276e+00  9.234e-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:  5.901e-01  1.008e-01  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/186686/cmap_HighResolution_290649601_290908801_4FGL_J1156.6+0640_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-04 17:16:45.344476', job_id='186686', GAL2='1.28', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630801005.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='-9.67e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='198' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:16:45 PDT 2021


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

Job <4FGL_J1156.6+0640_daily_bin198> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:33 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01: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:01:34 2021
Terminated at Sat Sep  4 17:16:46 2021
Results reported at Sat Sep  4 17:16:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin198 179.164 6.6728 290649601 290908801 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 :                                   788.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

