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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin269
RA = 179.164, Dec = 6.6728
tmin = 309052801, tmax = 309312001
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='186793', job_status='RUN', time_executed='2021-09-04 17:04:13.708859', time_epoch_executed='1630800253.71' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186793

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186793/ft1_4FGL_J1156.6+0640_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186793/ft2_4FGL_J1156.6+0640_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186793/ft1_4FGL_J1156.6+0640_daily_bin269.fits outfile=/scratch/kocevski/186793/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin269.fits ra=179.164 dec=6.6728 rad=12.0 tmin=309052801.0 tmax=309312001.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.38
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186793/ft1_filtered_4FGL_J1156.6+0640_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/186793/ft2_4FGL_J1156.6+0640_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/186793/ltcube_309052801_309312001_4FGL_J1156.6+0640_daily_bin269.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/186793/ft2_4FGL_J1156.6+0640_daily_bin269.fits
.....................!
real 12.11
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186793/ft1_filtered_4FGL_J1156.6+0640_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/186793/ft2_4FGL_J1156.6+0640_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/186793/ltcube_309052801_309312001_4FGL_J1156.6+0640_daily_bin269.fits outfile=/scratch/kocevski/186793/expmap_309052801_309312001_4FGL_J1156.6+0640_daily_bin269.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/186793/ltcube_309052801_309312001_4FGL_J1156.6+0640_daily_bin269.fits
.....................!
real 191.14
user 185.37
sys 5.40

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/186793/ft1_filtered_4FGL_J1156.6+0640_daily_bin269.fits scfile=/scratch/kocevski/186793/ft2_4FGL_J1156.6+0640_daily_bin269.fits outfile=/scratch/kocevski/186793/cmap_309052801_309312001_4FGL_J1156.6+0640_daily_bin269.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186793/ft1_filtered_4FGL_J1156.6+0640_daily_bin269.fits scfile=/scratch/kocevski/186793/ft2_4FGL_J1156.6+0640_daily_bin269.fits outfile=/scratch/kocevski/186793/cmap_HighResolution_309052801_309312001_4FGL_J1156.6+0640_daily_bin269.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.60
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.591       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1047       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3750       1.0000         .10000E-03   10000.    
    17 'norm      '    9.7275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    30.334       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3457       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.028       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.4679       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2927       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80187       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=   5381.840     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3039 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4794        12.002       -.13891E-05   -.13448E-03
   2  Prefactor     .10000E-03    24.411        .30878E-04** at limit **
   3  Prefactor     .10000E-03    1.3951       -.75458E-07** at limit **
   4  Prefactor     .10000E-03    26.698       -.25933E-04** at limit **
   5  Prefactor     39.566        100.96       -.34613E-04   -.42606E-05
   6  Prefactor     .10000E-03    17.048        .52934E-05** at limit **
   7  Prefactor     4.3400        4.8816        .54852E-06    .18095E-03
   8  Prefactor     .10000E-03    5.9409       -.11748E-06** at limit **
   9  Prefactor     .10000E-03    64.735        .24911E-04** at limit **
  10  Prefactor     .10000E-03    17.232       -.66673E-05** at limit **
  11  Prefactor     10.272        26.873       -.32504E-05    .24756E-04
  12  Prefactor     3.1046        3.0682       -.48251E-07    .62078E-05
  13  Prefactor     4.1733        3.4594       -.19313E-06   -.24114E-03
  14  Prefactor     2.3364        28.605       -.14404E-05   -.81370E-04
  15  Prefactor     .10000E-03    3.4099       -.50384E-07** at limit **
  16  norm          1.3752        1.9860       -.15025E-06   -.30824E-03
  17  norm          9.7260        5.2187        .17368E-05   -.67365E-04
  18  Prefactor     .10000E-03    9.1292        .15099E-06** at limit **
  19  norm          30.312        47.251       -.22772E-04    .12513E-04
  20  Prefactor     .10000E-03    111.27       -.29890E-04** at limit **
  21  norm          2.3455        .79349        .44225E-07   -.45023E-04
  22  Prefactor     31.024        13.726       -.51918E-06    .10283E-03
  23  Prefactor     .10000E-03    25.977       -.86766E-05** at limit **
  24  norm          4.4677        2.1126       -.88136E-07   -.38125E-04
  25  Normalizat    1.2930        .21646        .16706E-05   -.97713E-04
  26  Prefactor     .80163        .18167        .70618E-06    .99171E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.47936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.5664
  Prefactor  = 0.0001
  Prefactor  = 4.33995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2718
  Prefactor  = 3.10464
  Prefactor  = 4.17333
  Prefactor  = 2.33639
  Prefactor  = 0.0001
  norm       = 1.37518
  norm       = 9.72598
  Prefactor  = 0.0001
  norm       = 30.3124
  Prefactor  = 0.0001
  norm       = 2.34552
  Prefactor  = 31.0242
  Prefactor  = 0.0001
  norm       = 4.46767
  Normalizat = 1.29304
  Prefactor  = 0.801632
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.840     FROM HESSE     STATUS=OK           454 CALLS     3493 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4794        12.025        .15764E-03   -1.5199    
   2  Prefactor     .10000E-03    24.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4338        .16911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.566        101.45        .63703E-04   -1.4449    
   6  Prefactor     .10000E-03    17.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3400        4.8829        .16732E-03   -1.5291    
   8  Prefactor     .10000E-03    5.9501        .17463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    64.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.272        26.835        .12497E-03   -1.5067    
  12  Prefactor     3.1046        3.0663        .12266E-03   -1.5356    
  13  Prefactor     4.1733        3.4553        .11824E-03   -1.5299    
  14  Prefactor     2.3364        28.569        .26818E-03   -1.5402    
  15  Prefactor     .10000E-03    3.4115        .13228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3752        1.9504        .11985E-03   -1.5473    
  17  norm          9.7260        5.2286        .10321E-03   -1.5084    
  18  Prefactor     .10000E-03    9.1305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          30.312        47.334        .72746E-04   -1.4606    
  20  Prefactor     .10000E-03    111.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3455        .79236        .34653E-04   -1.5402    
  22  Prefactor     31.024        13.727        .71930E-04   -1.4593    
  23  Prefactor     .10000E-03    26.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.4677        2.1104        .70102E-04   -1.5285    
  25  Normalizat    1.2930        .25494        .25438E-03   -.83774    
  26  Prefactor     .80163        .21242        .27348E-03   -.99668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54276e-10
Minuit parameter uncertainties:
  1  12.0298
  2  5.57498e-05
  3  4.51209e-06
  4  3.22917e-05
  5  101.895
  6  5.84965e-05
  7  4.88337
  8  4.97497e-06
  9  5.01173e-05
  10  3.37637e-05
  11  26.8667
  12  3.06643
  13  3.45543
  14  16.3492
  15  2.72975e-06
  16  1.95045
  17  5.22886
  18  2.85306e-06
  19  47.3927
  20  2.2547e-05
  21  0.792366
  22  13.7288
  23  1.44244e-05
  24  2.11048
  25  0.255193
  26  0.212641
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  3.957e+01  1.019e+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:  8.016e-01  2.126e-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.293e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186793/likelihoodResults_309052801_309312001_4FGL_J1156.6+0640_daily_bin269.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) = 5381.75592405
delta logL = 0.084184724431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5381.73483777
delta logL = 0.105271010368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.377       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9092       1.0000          .0000       10.000    
     3 'Normalizat'    1.2730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81183       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=   5381.735     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      297 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.327        92.429        .81131E-04   -.25909E-03
   2  Index         2.9092        1.7202        .84419E-02   -.51301E-04
   3  Normalizat    1.2734        .24939        .25608E-03   -.18491E-03
   4  Prefactor     .81147        .21302        .27198E-03    .10617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3274
  Index      = 2.90916
  Normalizat = 1.27344
  Prefactor  = 0.811475
 **********
 **   18 **HESSE 
 **********

 FCN=   5381.735     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.327        69.414        .16226E-04   -1.4721    
   2  Index         2.9092        1.3004        .33768E-03   -.43143    
   3  Normalizat    1.2734        .24953        .51216E-04   -.84363    
   4  Prefactor     .81147        .21296        .10879E-04   -.99307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13362e-10
Minuit parameter uncertainties:
  1  69.6455
  2  1.31888
  3  0.24977
  4  0.21318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186793': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5381.73483577
delta logL = 0.105273006351

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.433e+01  6.965e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.909e+00  1.319e+00  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.115e-01  2.132e-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.273e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/186793/cmap_HighResolution_309052801_309312001_4FGL_J1156.6+0640_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-04 17:16:02.917795', job_id='186793', GAL2='0.81', fit_tolerance='1e-08', EG2='1.27', EG='1.29', time_epoch_completed='1630800962.92', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.05e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='269' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:16:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 186793: <4FGL_J1156.6+0640_daily_bin269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin269 179.164 6.6728 309052801 309312001 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 :                                   708.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

