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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin982
RA = 179.164, Dec = 6.6728
tmin = 493862401, tmax = 494121601
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='191402', job_status='RUN', time_executed='2021-09-04 17:20:37.403863', time_epoch_executed='1630801237.4' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191402

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191402/ft1_4FGL_J1156.6+0640_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191402/ft2_4FGL_J1156.6+0640_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191402/ft1_4FGL_J1156.6+0640_daily_bin982.fits outfile=/scratch/kocevski/191402/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin982.fits ra=179.164 dec=6.6728 rad=12.0 tmin=493862401.0 tmax=494121601.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.61
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191402/ft1_filtered_4FGL_J1156.6+0640_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/191402/ft2_4FGL_J1156.6+0640_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/191402/ltcube_493862401_494121601_4FGL_J1156.6+0640_daily_bin982.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/191402/ft2_4FGL_J1156.6+0640_daily_bin982.fits
.....................!
real 12.17
user 11.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191402/ft1_filtered_4FGL_J1156.6+0640_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/191402/ft2_4FGL_J1156.6+0640_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/191402/ltcube_493862401_494121601_4FGL_J1156.6+0640_daily_bin982.fits outfile=/scratch/kocevski/191402/expmap_493862401_494121601_4FGL_J1156.6+0640_daily_bin982.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/191402/ltcube_493862401_494121601_4FGL_J1156.6+0640_daily_bin982.fits
.....................!
real 190.84
user 185.44
sys 4.96

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/191402/ft1_filtered_4FGL_J1156.6+0640_daily_bin982.fits scfile=/scratch/kocevski/191402/ft2_4FGL_J1156.6+0640_daily_bin982.fits outfile=/scratch/kocevski/191402/cmap_493862401_494121601_4FGL_J1156.6+0640_daily_bin982.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191402/ft1_filtered_4FGL_J1156.6+0640_daily_bin982.fits scfile=/scratch/kocevski/191402/ft2_4FGL_J1156.6+0640_daily_bin982.fits outfile=/scratch/kocevski/191402/cmap_HighResolution_493862401_494121601_4FGL_J1156.6+0640_daily_bin982.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.56
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.030       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.641       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91721E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.472       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11206E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .69949E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9018       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5325       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8370       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1211       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99369       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=   5316.268     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3093 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.118        15.102       -.50236E-07   -.14256E-05
   2  Prefactor     49.029        42.541       -.16905E-06   -.14432E-05
   3  Prefactor     4.6750        3.1120       -.51681E-07   -.96449E-05
   4  Prefactor     .10000E-03    10.602        .21238E-07** at limit **
   5  Prefactor     14.629        193.76       -.31565E-05   -.29350E-05
   6  Prefactor     .10000E-03    6.7692        .12027E-06** at limit **
   7  Prefactor     .10000E-03    3.2576        .60287E-07** at limit **
   8  Prefactor     .10000E-03    41.095       -.49837E-06** at limit **
   9  Prefactor     .10000E-03    110.15        .69276E-05** at limit **
  10  Prefactor     .10000E-03    23.559        .30839E-06** at limit **
  11  Prefactor     .10000E-03    138.29       -.23036E-04** at limit **
  12  Prefactor     .10000E-03    1.6321        .21257E-07** at limit **
  13  Prefactor     .10000E-03    1.5836        .22781E-07** at limit **
  14  Prefactor     .10000E-03    8.5721        .75225E-07** at limit **
  15  Prefactor     25.467        14.077       -.30085E-06   -.12143E-07
  16  norm          .10000E-03    1.0344        .42793E-07** at limit **
  17  norm          4.3296        4.4939        .39834E-06    .36276E-03
  18  Prefactor     .10000E-03    111.88        .54608E-05** at limit **
  19  norm          .10000E-03    139.88       -.33799E-05** at limit **
  20  Prefactor     .10000E-03    666.89       -.18336E-04** at limit **
  21  norm          1.9018        .85020       -.16076E-08    .64504E-03
  22  Prefactor     4.5400        13.275       -.20700E-05    .54992E-04
  23  Prefactor     .10000E-03    136.88       -.12015E-04** at limit **
  24  norm          1.8370        1.6743        .12129E-07    .10125E-03
  25  Normalizat    1.1211        .22150        .20226E-07    .15501E-03
  26  Prefactor     .99364        .18065        .42175E-06    .11820E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.1181
  Prefactor  = 49.0295
  Prefactor  = 4.67504
  Prefactor  = 0.0001
  Prefactor  = 14.6293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4675
  norm       = 0.0001
  norm       = 4.32961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.90183
  Prefactor  = 4.53997
  Prefactor  = 0.000100002
  norm       = 1.83696
  Normalizat = 1.12112
  Prefactor  = 0.993639
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.268     FROM HESSE     STATUS=OK           454 CALLS     3547 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.118        15.118        .89298E-04   -1.4811    
   2  Prefactor     49.029        42.739        .57269E-04   -1.4306    
   3  Prefactor     4.6750        3.1166        .99964E-04   -1.5275    
   4  Prefactor     .10000E-03    10.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.629        196.15        .10468E-03   -1.4943    
   6  Prefactor     .10000E-03    6.8013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2620        .12851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    110.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    135.02        .49087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6487        .90948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6096        .89574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.467        13.935        .79373E-04   -1.4698    
  16  norm          .10000E-03    1.0394        .72267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3296        4.4871        .13885E-03   -1.5292    
  18  Prefactor     .10000E-03    112.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    142.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    673.49        .20980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9018        .84282        .38936E-04   -1.5432    
  22  Prefactor     4.5400        13.310        .94549E-03   -1.5282    
  23  Prefactor     .10000E-03    138.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8370        1.6666        .85668E-04   -1.5437    
  25  Normalizat    1.1211        .26121        .27320E-03   -.89077    
  26  Prefactor     .99364        .21144        .24838E-03   -.92942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06364e-10
Minuit parameter uncertainties:
  1  15.1212
  2  42.7656
  3  3.1167
  4  9.20295e-07
  5  107.568
  6  2.8336e-06
  7  2.42658e-07
  8  6.64231e-05
  9  0.000330725
  10  1.08709e-05
  11  0.000125079
  12  1.10899e-07
  13  6.72669e-08
  14  1.75991e-06
  15  13.9367
  16  1.30897e-06
  17  4.48747
  18  0.0001089
  19  0.000363797
  20  0.0018273
  21  0.842827
  22  13.3191
  23  0.000935887
  24  1.66669
  25  0.261516
  26  0.211615
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.463e+01  1.076e+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:  9.936e-01  2.116e-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.121e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/191402/likelihoodResults_493862401_494121601_4FGL_J1156.6+0640_daily_bin982.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) = 5316.16961498
delta logL = 0.0988629965914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5316.16020236
delta logL = 0.108275619734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.597       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2481       1.0000          .0000       10.000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0062       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5316.160     FROM MIGRAD    STATUS=FAILED        92 CALLS      291 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.574        2174.7        .12308E-03   -.43043E-04
   2  Index         3.2487        6.1312        .92393E-02    .35987E-03
   3  Normalizat    1.0942        .24179        .27625E-03   -.32512E-05
   4  Prefactor     1.0065        .21036        .24700E-03   -.14094E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5316.160     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      381 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.574        2174.7        .45575E-03   -.43043E-04
   2  Index         3.2487        6.1312        .11388E-02    .35987E-03
   3  Normalizat    1.0942        .24179        .18968E-03   -.32512E-05
   4  Prefactor     1.0065        .21036        .20335E-03   -.14094E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5316.160     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      410 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.574        73.779        .49232E-05   -.50802E-04
   2  Index         3.2487        2.2908        .18479E-02   -.10508E-04
   3  Normalizat    1.0942        .25198        .11050E-04   -.43211E-05
   4  Prefactor     1.0065        .21265        .49400E-04   -.13348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5742
  Index      = 3.24868
  Normalizat = 1.09421
  Prefactor  = 1.00651
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.160     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.574        59.318        .98465E-06   -1.5057    
   2  Index         3.2487        2.0656        .73914E-04   -.35785    
   3  Normalizat    1.0942        .25203        .22100E-05   -.89938    
   4  Prefactor     1.0065        .21254        .98800E-05   -.92513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06581e-10
Minuit parameter uncertainties:
  1  50.1656
  2  2.13926
  3  0.252303
  4  0.212721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191402': 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) = 5316.16020003
delta logL = 0.108277949858

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.057e+01  5.017e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  3.249e+00  2.139e+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.007e+00  2.127e-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.094e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/191402/cmap_HighResolution_493862401_494121601_4FGL_J1156.6+0640_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-04 17:32:28.976278', job_id='191402', GAL2='1.01', fit_tolerance='1e-08', EG2='1.09', EG='1.12', time_epoch_completed='1630801948.98', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.08e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='982' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:32:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 191402: <4FGL_J1156.6+0640_daily_bin982> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin982> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:16:34 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:16:36 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:16:36 2021
Terminated at Sat Sep  4 17:32:29 2021
Results reported at Sat Sep  4 17:32:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin982 179.164 6.6728 493862401 494121601 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 :                                   710.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

