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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin705
RA = 179.164, Dec = 6.6728
tmin = 422064001, tmax = 422323201
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='189694', job_status='RUN', time_executed='2021-09-04 17:13:27.699245', time_epoch_executed='1630800807.7' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='705'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189694

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189694/ft1_4FGL_J1156.6+0640_daily_bin705.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189694/ft2_4FGL_J1156.6+0640_daily_bin705.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189694/ft1_4FGL_J1156.6+0640_daily_bin705.fits outfile=/scratch/kocevski/189694/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin705.fits ra=179.164 dec=6.6728 rad=12.0 tmin=422064001.0 tmax=422323201.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.65
user 3.41
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189694/ft1_filtered_4FGL_J1156.6+0640_daily_bin705.fits evtable="EVENTS" scfile=/scratch/kocevski/189694/ft2_4FGL_J1156.6+0640_daily_bin705.fits sctable="SC_DATA" expcube=/scratch/kocevski/189694/ltcube_422064001_422323201_4FGL_J1156.6+0640_daily_bin705.fits outfile=/scratch/kocevski/189694/expmap_422064001_422323201_4FGL_J1156.6+0640_daily_bin705.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/189694/ltcube_422064001_422323201_4FGL_J1156.6+0640_daily_bin705.fits
.....................!
real 189.91
user 184.91
sys 4.57

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/189694/ft1_filtered_4FGL_J1156.6+0640_daily_bin705.fits scfile=/scratch/kocevski/189694/ft2_4FGL_J1156.6+0640_daily_bin705.fits outfile=/scratch/kocevski/189694/cmap_422064001_422323201_4FGL_J1156.6+0640_daily_bin705.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/189694/ft1_filtered_4FGL_J1156.6+0640_daily_bin705.fits scfile=/scratch/kocevski/189694/ft2_4FGL_J1156.6+0640_daily_bin705.fits outfile=/scratch/kocevski/189694/cmap_HighResolution_422064001_422323201_4FGL_J1156.6+0640_daily_bin705.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4680       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55932       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5401       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8650       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9969       1.0000         .10000E-03   10000.    
    17 'norm      '    10.906       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .69438       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.095       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .15443       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61100       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2640       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=   6540.988     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3150 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0969       -.45013E-07** at limit **
   2  Prefactor     6.4652        53.161        .83203E-06   -.47657E-05
   3  Prefactor     .55985        1.1086        .51745E-06    .10867E-02
   4  Prefactor     .10000E-03    7.0428        .52547E-07** at limit **
   5  Prefactor     .10000E-03    43.620       -.49315E-06** at limit **
   6  Prefactor     .10000E-03    3.0014        .83322E-08** at limit **
   7  Prefactor     .10000E-03    3.2862        .34387E-07** at limit **
   8  Prefactor     19.561        19.757        .79734E-06   -.32271E-04
   9  Prefactor     .10001E-03    87.991        .17528E-05** at limit **
  10  Prefactor     .10000E-03    17.561        .42088E-07** at limit **
  11  Prefactor     39.685        21.739       -.50507E-07   -.13890E-04
  12  Prefactor     6.5405        4.7670        .17137E-05   -.22426E-03
  13  Prefactor     .10000E-03    1.6285       -.19094E-06** at limit **
  14  Prefactor     .10000E-03    9.6051        .19398E-07** at limit **
  15  Prefactor     8.8649        9.0138        .12545E-05   -.69857E-04
  16  norm          1.9970        1.7879       -.96071E-07   -.28285E-04
  17  norm          10.903        4.0145       -.42119E-07   -.13679E-03
  18  Prefactor     .10000E-03    17.504       -.26000E-07** at limit **
  19  norm          15.538        25.336        .33933E-08   -.71095E-05
  20  Prefactor     .10001E-03    151.84       -.23865E-05** at limit **
  21  norm          .69463        .50146        .40279E-08   -.34905E-03
  22  Prefactor     14.094        12.388        .27609E-06   -.18268E-04
  23  Prefactor     .10000E-03    26.888        .17601E-06** at limit **
  24  norm          .15396        .81324        .33837E-06   -.47760E-03
  25  Normalizat    .61102        .18628       -.89849E-06   -.81197E-04
  26  Prefactor     1.2639        .16009       -.39617E-06   -.69546E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.46515
  Prefactor  = 0.559849
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5615
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 39.685
  Prefactor  = 6.54049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8649
  norm       = 1.99698
  norm       = 10.9028
  Prefactor  = 0.0001
  norm       = 15.5376
  Prefactor  = 0.000100013
  norm       = 0.694632
  Prefactor  = 14.0937
  Prefactor  = 0.0001
  norm       = 0.15396
  Normalizat = 0.611024
  Prefactor  = 1.26394
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.988     FROM HESSE     STATUS=OK           460 CALLS     3610 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4652        53.286        .15781E-03   -1.5199    
   3  Prefactor     .55985        .94771        .12231E-02   -1.5558    
   4  Prefactor     .10000E-03    7.0489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0045        .13682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3001        .14315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.561        19.794        .90562E-04   -1.4823    
   9  Prefactor     .10001E-03    88.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.685        21.723        .63628E-04   -1.4447    
  12  Prefactor     6.5405        4.6820        .71435E-03   -1.5196    
  13  Prefactor     .10000E-03    1.6544        .10092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8649        8.9540        .67310E-03   -1.5112    
  16  norm          1.9970        1.7801        .95798E-04   -1.5425    
  17  norm          10.903        3.9948        .86342E-04   -1.5047    
  18  Prefactor     .10000E-03    17.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.538        25.370        .10160E-03   -1.4919    
  20  Prefactor     .10001E-03    152.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .69463        .48114        .43840E-04   -1.5541    
  22  Prefactor     14.094        12.376        .10669E-03   -1.4957    
  23  Prefactor     .10000E-03    26.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .15396        1.5027        .13794E-02   -1.5630    
  25  Normalizat    .61102        .21443        .32474E-03   -1.0752    
  26  Prefactor     1.2639        .18607        .21166E-03   -.84386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76605e-08
Minuit parameter uncertainties:
  1  3.68294e-06
  2  37.1665
  3  0.947732
  4  1.02248e-05
  5  0.000333256
  6  4.26852e-07
  7  2.7065e-06
  8  19.8009
  9  0.00156116
  10  8.23498e-06
  11  21.7276
  12  4.68229
  13  1.26137e-05
  14  4.99286e-06
  15  8.95538
  16  1.78015
  17  3.99486
  18  7.49295e-06
  19  25.3873
  20  0.00278201
  21  0.481141
  22  12.3784
  23  7.40843e-05
  24  0.961706
  25  0.214723
  26  0.186165
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  3.333e-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.264e+00  1.862e-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:  6.110e-01  2.147e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189694/likelihoodResults_422064001_422323201_4FGL_J1156.6+0640_daily_bin705.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) = 6540.98767983
delta logL = -0.000108961552542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6540.98757116
delta logL = -2.89152012556e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8143       1.0000          .0000       10.000    
     3 'Normalizat'    .61102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2639       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=   6540.988     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.266        .90712E-02** at limit **
   2  Index         2.7988        6.1844        .50000        .40253E-05
   3  Normalizat    .61102        .38346E-02    .73355E-01    .30622E-04
   4  Prefactor     1.2639        .34961E-02    .47881E-01   -.73092E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.79876
  Normalizat = 0.611025
  Prefactor  = 1.26394
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.988     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    229.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7988        7.2754        .50000       -.45587    
   3  Normalizat    .61102        .11179E-01    .32474E-03   -1.0752    
   4  Prefactor     1.2639        .10212E-01    .21166E-03   -.84386    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41675e-07
Minuit parameter uncertainties:
  1  5.86566e-05
  2  418.871
  3  0.0111787
  4  0.0102125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189694': 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) = 6540.98757114
delta logL = -2.64740265266e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.866e-05  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.799e+00  4.189e+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:  1.264e+00  1.021e-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:  6.110e-01  1.118e-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/189694/cmap_HighResolution_422064001_422323201_4FGL_J1156.6+0640_daily_bin705.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-04 17:26:35.100556', job_id='189694', GAL2='1.26', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630801595.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='-2.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='705' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 189694: <4FGL_J1156.6+0640_daily_bin705> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin705 179.164 6.6728 422064001 422323201 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 :                                   786.21 sec.
    Max Memory :                                 1205 MB
    Average Memory :                             312.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

