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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin758
RA = 179.164, Dec = 6.6728
tmin = 435801601, tmax = 436060801
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='189777', job_status='RUN', time_executed='2021-09-04 17:14:32.153006', time_epoch_executed='1630800872.15' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189777/ft1_4FGL_J1156.6+0640_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189777/ft2_4FGL_J1156.6+0640_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189777/ft1_4FGL_J1156.6+0640_daily_bin758.fits outfile=/scratch/kocevski/189777/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin758.fits ra=179.164 dec=6.6728 rad=12.0 tmin=435801601.0 tmax=436060801.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 5.60
user 5.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189777/ft2_4FGL_J1156.6+0640_daily_bin758.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/189777/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/189777/ft1_filtered_4FGL_J1156.6+0640_daily_bin758.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/189777/ft1_filtered_4FGL_J1156.6+0640_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/189777/ft2_4FGL_J1156.6+0640_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/189777/ltcube_435801601_436060801_4FGL_J1156.6+0640_daily_bin758.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/189777/ft2_4FGL_J1156.6+0640_daily_bin758.fits
.....................!
real 12.11
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189777/ft1_filtered_4FGL_J1156.6+0640_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/189777/ft2_4FGL_J1156.6+0640_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/189777/ltcube_435801601_436060801_4FGL_J1156.6+0640_daily_bin758.fits outfile=/scratch/kocevski/189777/expmap_435801601_436060801_4FGL_J1156.6+0640_daily_bin758.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/189777/ltcube_435801601_436060801_4FGL_J1156.6+0640_daily_bin758.fits
.....................!
real 191.20
user 185.76
sys 4.39

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/189777/ft1_filtered_4FGL_J1156.6+0640_daily_bin758.fits scfile=/scratch/kocevski/189777/ft2_4FGL_J1156.6+0640_daily_bin758.fits outfile=/scratch/kocevski/189777/cmap_435801601_436060801_4FGL_J1156.6+0640_daily_bin758.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189777/ft1_filtered_4FGL_J1156.6+0640_daily_bin758.fits scfile=/scratch/kocevski/189777/ft2_4FGL_J1156.6+0640_daily_bin758.fits outfile=/scratch/kocevski/189777/cmap_HighResolution_435801601_436060801_4FGL_J1156.6+0640_daily_bin758.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.254       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.383       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0257       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.996       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6541       1.0000         .10000E-03   10000.    
     9 'Prefactor '    119.95       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1722       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .86669E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8429       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.417       1.0000         .10000E-03   10000.    
    19 'norm      '    .43950E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0240       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.601       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.2063       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83802       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0591       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=   5762.189     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3131 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.255        12.968       -.14515E-05   -.71417E-04
   2  Prefactor     15.396        38.763        .21756E-04   -.17082E-04
   3  Prefactor     6.5913        2.5991        .20377E-06   -.10951E-03
   4  Prefactor     7.0266        21.891        .13902E-05   -.34706E-04
   5  Prefactor     40.024        80.916        .41052E-04   -.40638E-05
   6  Prefactor     .10000E-03    5.1404       -.36747E-07** at limit **
   7  Prefactor     5.8461        8.3174       -.54752E-06   -.18660E-03
   8  Prefactor     9.6554        24.773        .78562E-05   -.14827E-04
   9  Prefactor     119.92        129.25       -.21465E-04   -.16071E-04
  10  Prefactor     57.799        43.172        .15693E-05    .13994E-04
  11  Prefactor     25.391        20.648       -.10799E-05   -.22520E-03
  12  Prefactor     7.1720        5.7908        .53371E-05   -.97920E-04
  13  Prefactor     .10000E-03    2.9215       -.86571E-06** at limit **
  14  Prefactor     .10000E-03    11.803       -.12548E-05** at limit **
  15  Prefactor     .10000E-03    25.523        .13565E-04** at limit **
  16  norm          .10009E-03    1.2737        .76536E-06** at limit **
  17  norm          1.8408        4.7737        .82817E-06    .68708E-03
  18  Prefactor     11.418        21.297        .91975E-06    .13552E-04
  19  norm          .10004E-03    238.29       -.16378E-03** at limit **
  20  Prefactor     .10000E-03    59.720        .18230E-05** at limit **
  21  norm          2.0238        .69076        .18092E-06    .58626E-02
  22  Prefactor     10.600        13.752        .85601E-06    .62383E-04
  23  Prefactor     .10000E-03    24.946       -.12270E-04** at limit **
  24  norm          5.2066        2.0860        .14180E-06    .58391E-03
  25  Normalizat    .83817        .21800       -.60022E-05    .17779E-03
  26  Prefactor     1.0590        .17591        .15661E-06    .43897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2546
  Prefactor  = 15.3965
  Prefactor  = 6.59135
  Prefactor  = 7.02655
  Prefactor  = 40.0242
  Prefactor  = 0.0001
  Prefactor  = 5.84609
  Prefactor  = 9.65542
  Prefactor  = 119.922
  Prefactor  = 57.7989
  Prefactor  = 25.3907
  Prefactor  = 7.17202
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100092
  norm       = 1.84077
  Prefactor  = 11.4178
  norm       = 0.000100045
  Prefactor  = 0.0001
  norm       = 2.02385
  Prefactor  = 10.6
  Prefactor  = 0.0001
  norm       = 5.20659
  Normalizat = 0.838173
  Prefactor  = 1.05897
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.189     FROM HESSE     STATUS=OK           460 CALLS     3591 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.255        12.966        .10609E-03   -1.4953    
   2  Prefactor     15.396        38.873        .10212E-03   -1.4923    
   3  Prefactor     6.5913        2.6003        .73568E-04   -1.5194    
   4  Prefactor     7.0266        21.869        .15135E-03   -1.5178    
   5  Prefactor     40.024        80.947        .63381E-04   -1.4442    
   6  Prefactor     .10000E-03    5.1555        .16801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8461        8.2991        .16610E-03   -1.5224    
   8  Prefactor     9.6554        24.597        .12897E-03   -1.5086    
   9  Prefactor     119.92        128.80        .36744E-04   -1.3513    
  10  Prefactor     57.799        43.085        .52769E-04   -1.4186    
  11  Prefactor     25.391        20.569        .79490E-04   -1.4700    
  12  Prefactor     7.1720        5.7652        .14978E-03   -1.5172    
  13  Prefactor     .10000E-03    2.9514        .12617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10009E-03    12.499        .16342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8408        4.6781        .22247E-03   -1.5437    
  18  Prefactor     11.418        21.283        .11857E-03   -1.5032    
  19  norm          .10004E-03    239.31        .42440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    59.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0238        .68203        .32450E-04   -1.5423    
  22  Prefactor     10.600        13.746        .12306E-03   -1.5057    
  23  Prefactor     .10000E-03    24.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.2066        2.0834        .66371E-04   -1.5252    
  25  Normalizat    .83817        .24993        .30043E-03   -.98668    
  26  Prefactor     1.0590        .20145        .23782E-03   -.90789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8947e-09
Minuit parameter uncertainties:
  1  12.9681
  2  38.9372
  3  2.60031
  4  21.8934
  5  81.1706
  6  2.08534e-05
  7  8.30076
  8  24.6229
  9  129.106
  10  43.108
  11  20.5748
  12  5.7656
  13  0.000129989
  14  4.59307e-06
  15  0.000204129
  16  0.00214324
  17  4.67907
  18  21.2975
  19  0.00656783
  20  2.45772e-05
  21  0.682034
  22  13.7504
  23  7.54444e-06
  24  2.08344
  25  0.250274
  26  0.20159
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  4.002e+01  8.117e+01  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.059e+00  2.016e-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:  8.382e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 9.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189777/likelihoodResults_435801601_436060801_4FGL_J1156.6+0640_daily_bin758.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) = 5762.17917623
delta logL = 0.0102920147137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5762.17526916
delta logL = 0.0141990787051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.999       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0815       1.0000          .0000       10.000    
     3 'Normalizat'    .84302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0561       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=   5762.175     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      270 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.018        101.46        .57878E-04   -.31456E-03
   2  Index         2.0754        1.3543        .14898E-01   -.21334E-03
   3  Normalizat    .84314        .22640        .29960E-03    .45482E-03
   4  Prefactor     1.0561        .19932        .23809E-03    .65769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.0182
  Index      = 2.07539
  Normalizat = 0.843138
  Prefactor  = 1.0561
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.175     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.018        98.983        .11576E-04   -1.4321    
   2  Index         2.0754        1.3215        .59594E-03   -.62478    
   3  Normalizat    .84314        .22632        .59920E-04   -.98488    
   4  Prefactor     1.0561        .19934        .47618E-04   -.90882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18335e-09
Minuit parameter uncertainties:
  1  99.3245
  2  1.34603
  3  0.226578
  4  0.199481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189777': 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) = 5762.17525862
delta logL = 0.014209620007

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  4.802e+01  9.932e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.075e+00  1.346e+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:  1.056e+00  1.995e-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:  8.431e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/189777/cmap_HighResolution_435801601_436060801_4FGL_J1156.6+0640_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.18e-08', time_completed='2021-09-04 17:27:07.482082', job_id='189777', GAL2='1.06', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630801627.48', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.42e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='758' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 189777: <4FGL_J1156.6+0640_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin758 179.164 6.6728 435801601 436060801 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 :                                   753.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

