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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin163
RA = 179.164, Dec = 6.6728
tmin = 281577601, tmax = 281836801
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='186631', job_status='RUN', time_executed='2021-09-04 17:04:35.446387', time_epoch_executed='1630800275.45' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186631

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186631/ft1_4FGL_J1156.6+0640_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186631/ft2_4FGL_J1156.6+0640_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186631/ft1_4FGL_J1156.6+0640_daily_bin163.fits outfile=/scratch/kocevski/186631/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin163.fits ra=179.164 dec=6.6728 rad=12.0 tmin=281577601.0 tmax=281836801.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.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186631/ft1_filtered_4FGL_J1156.6+0640_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/186631/ft2_4FGL_J1156.6+0640_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/186631/ltcube_281577601_281836801_4FGL_J1156.6+0640_daily_bin163.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/186631/ft2_4FGL_J1156.6+0640_daily_bin163.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186631/ft1_filtered_4FGL_J1156.6+0640_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/186631/ft2_4FGL_J1156.6+0640_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/186631/ltcube_281577601_281836801_4FGL_J1156.6+0640_daily_bin163.fits outfile=/scratch/kocevski/186631/expmap_281577601_281836801_4FGL_J1156.6+0640_daily_bin163.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/186631/ltcube_281577601_281836801_4FGL_J1156.6+0640_daily_bin163.fits
.....................!
real 190.88
user 186.57
sys 3.99

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/186631/ft1_filtered_4FGL_J1156.6+0640_daily_bin163.fits scfile=/scratch/kocevski/186631/ft2_4FGL_J1156.6+0640_daily_bin163.fits outfile=/scratch/kocevski/186631/cmap_281577601_281836801_4FGL_J1156.6+0640_daily_bin163.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186631/ft1_filtered_4FGL_J1156.6+0640_daily_bin163.fits scfile=/scratch/kocevski/186631/ft2_4FGL_J1156.6+0640_daily_bin163.fits outfile=/scratch/kocevski/186631/cmap_HighResolution_281577601_281836801_4FGL_J1156.6+0640_daily_bin163.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.285       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2447       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5146       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.624       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.856       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1119       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.845       1.0000         .10000E-03   10000.    
    19 'norm      '    40.839       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.0954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0440       1.0000         .10000E-03   10000.    
    24 'norm      '    7.8716       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1594       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86863       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=   6138.251     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3069 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5340        .64608E-07** at limit **
   2  Prefactor     12.283        31.889        .12871E-05   -.19197E-05
   3  Prefactor     2.2446        1.7273        .24095E-07    .54799E-05
   4  Prefactor     .10000E-03    9.4451       -.17772E-05** at limit **
   5  Prefactor     .10000E-03    31.869       -.41052E-06** at limit **
   6  Prefactor     4.5141        5.8952       -.35032E-07   -.17798E-04
   7  Prefactor     .10000E-03    2.8291       -.79113E-07** at limit **
   8  Prefactor     .10000E-03    8.5319        .10664E-05** at limit **
   9  Prefactor     24.615        55.334        .46703E-05    .48946E-05
  10  Prefactor     .10000E-03    11.204        .97623E-06** at limit **
  11  Prefactor     26.238        21.449       -.71767E-08   -.12306E-05
  12  Prefactor     .10000E-03    1.4706        .47065E-07** at limit **
  13  Prefactor     2.5262        2.4466        .67085E-07   -.23849E-04
  14  Prefactor     19.847        35.423       -.41396E-06    .72906E-05
  15  Prefactor     .10000E-03    5.9355        .17141E-06** at limit **
  16  norm          .10000E-03    .84937       -.80462E-07** at limit **
  17  norm          5.1139        5.8834        .28025E-05   -.11708E-04
  18  Prefactor     18.844        28.976       -.12698E-06   -.28914E-05
  19  norm          40.806        82.752        .34971E-05    .17303E-04
  20  Prefactor     .10000E-03    49.950        .33683E-06** at limit **
  21  norm          9.0951        1.2430       -.17227E-06    .54429E-03
  22  Prefactor     .10000E-03    4.1404        .78914E-07** at limit **
  23  Prefactor     5.0461        38.107       -.60814E-06   -.48837E-05
  24  norm          7.8717        2.5445       -.37900E-07   -.51577E-04
  25  Normalizat    1.1595        .20439       -.14940E-05   -.24547E-04
  26  Prefactor     .86856        .17462        .34741E-06   -.48120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.2832
  Prefactor  = 2.24464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6154
  Prefactor  = 0.0001
  Prefactor  = 26.2381
  Prefactor  = 0.0001
  Prefactor  = 2.52617
  Prefactor  = 19.8474
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.11393
  Prefactor  = 18.8445
  norm       = 40.8061
  Prefactor  = 0.0001
  norm       = 9.09506
  Prefactor  = 0.0001
  Prefactor  = 5.04606
  norm       = 7.87166
  Normalizat = 1.15948
  Prefactor  = 0.868561
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.251     FROM HESSE     STATUS=OK           458 CALLS     3527 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.5690        .17998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.283        32.005        .11429E-03   -1.5007    
   3  Prefactor     2.2446        1.7314        .87684E-04   -1.5408    
   4  Prefactor     .10000E-03    9.4534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5141        5.8903        .18948E-03   -1.5283    
   7  Prefactor     .10000E-03    2.8440        .12869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.615        55.330        .80724E-04   -1.4715    
  10  Prefactor     .10000E-03    11.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.238        21.448        .78208E-04   -1.4683    
  12  Prefactor     .10000E-03    1.4814        .92704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5262        2.4384        .11677E-03   -1.5390    
  14  Prefactor     19.847        35.451        .89885E-04   -1.4817    
  15  Prefactor     .10000E-03    5.9620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .85285        .70491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1139        5.8933        .76777E-03   -1.5256    
  18  Prefactor     18.844        28.975        .92262E-04   -1.4839    
  19  norm          40.806        82.913        .62726E-04   -1.4430    
  20  Prefactor     .10000E-03    49.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.0951        1.2477        .28328E-04   -1.5105    
  22  Prefactor     .10000E-03    4.1445        .15563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.0461        38.119        .17904E-03   -1.5259    
  24  norm          7.8717        2.5452        .68062E-04   -1.5147    
  25  Normalizat    1.1595        .23776        .27613E-03   -.87864    
  26  Prefactor     .86856        .20258        .27556E-03   -.97248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4251e-11
Minuit parameter uncertainties:
  1  2.29592e-06
  2  32.0496
  3  1.73142
  4  1.21791e-05
  5  6.52409e-06
  6  5.89106
  7  8.61512e-07
  8  2.05772e-06
  9  55.4455
  10  4.75024e-06
  11  21.454
  12  8.02283e-07
  13  2.43847
  14  35.4888
  15  6.84934e-06
  16  7.69543e-07
  17  5.89397
  18  28.9965
  19  83.1483
  20  1.2768e-05
  21  1.24769
  22  5.53048e-06
  23  27.7624
  24  2.54525
  25  0.237982
  26  0.202751
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  6.524e-06  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.686e-01  2.028e-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.159e+00  2.380e-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: 5.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186631/likelihoodResults_281577601_281836801_4FGL_J1156.6+0640_daily_bin163.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) = 6138.2510909
delta logL = -0.000149175918523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6138.25094242
delta logL = -6.9848192652e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6943       1.0000          .0000       10.000    
     3 'Normalizat'    1.1595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86857       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=   6138.251     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      273 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10197E-03    168.74        .18142E-02** at limit **
   2  Index         2.6271        6.7378        .50000        .93204E-05
   3  Normalizat    1.1595        .13623E-01    .27613E-03    .10527E-03
   4  Prefactor     .86856        .12016E-01    .27556E-03   -.44351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101973
  Index      = 2.62707
  Normalizat = 1.15948
  Prefactor  = 0.868559
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.251     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10197E-03    711.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6271        6.6155        .50000       -.49449    
   3  Normalizat    1.1595        .28956E-01    .11045E-04   -.87864    
   4  Prefactor     .86856        .25541E-01    .11022E-04   -.97249    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2208e-08
Minuit parameter uncertainties:
  1  0.0758503
  2  771.337
  3  0.0289568
  4  0.0255409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186631': 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) = 6138.25094224
delta logL = -5.18648448633e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.020e-04  7.585e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.627e+00  7.713e+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.686e-01  2.554e-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.159e+00  2.896e-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/186631/cmap_HighResolution_281577601_281836801_4FGL_J1156.6+0640_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='5.02e-08', time_completed='2021-09-04 17:17:40.374440', job_id='186631', GAL2='0.87', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630801060.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-5.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='163' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:17:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 186631: <4FGL_J1156.6+0640_daily_bin163> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin163 179.164 6.6728 281577601 281836801 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 :                                   785.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

