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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin850
RA = 179.164, Dec = 6.6728
tmin = 459648001, tmax = 459907201
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='189921', job_status='RUN', time_executed='2021-09-04 17:13:44.456002', time_epoch_executed='1630800824.46' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='850'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189921/ft1_4FGL_J1156.6+0640_daily_bin850.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189921/ft2_4FGL_J1156.6+0640_daily_bin850.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189921/ft1_4FGL_J1156.6+0640_daily_bin850.fits outfile=/scratch/kocevski/189921/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin850.fits ra=179.164 dec=6.6728 rad=12.0 tmin=459648001.0 tmax=459907201.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.41
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189921/ft2_4FGL_J1156.6+0640_daily_bin850.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/189921/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin850.fits evtable="EVENTS" outfile="/scratch/kocevski/189921/ft1_filtered_4FGL_J1156.6+0640_daily_bin850.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 1.12
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189921/ft1_filtered_4FGL_J1156.6+0640_daily_bin850.fits evtable="EVENTS" scfile=/scratch/kocevski/189921/ft2_4FGL_J1156.6+0640_daily_bin850.fits sctable="SC_DATA" expcube=/scratch/kocevski/189921/ltcube_459648001_459907201_4FGL_J1156.6+0640_daily_bin850.fits outfile=/scratch/kocevski/189921/expmap_459648001_459907201_4FGL_J1156.6+0640_daily_bin850.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/189921/ltcube_459648001_459907201_4FGL_J1156.6+0640_daily_bin850.fits
.....................!
real 190.98
user 185.80
sys 4.65

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/189921/ft1_filtered_4FGL_J1156.6+0640_daily_bin850.fits scfile=/scratch/kocevski/189921/ft2_4FGL_J1156.6+0640_daily_bin850.fits outfile=/scratch/kocevski/189921/cmap_459648001_459907201_4FGL_J1156.6+0640_daily_bin850.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189921/ft1_filtered_4FGL_J1156.6+0640_daily_bin850.fits scfile=/scratch/kocevski/189921/ft2_4FGL_J1156.6+0640_daily_bin850.fits outfile=/scratch/kocevski/189921/cmap_HighResolution_459648001_459907201_4FGL_J1156.6+0640_daily_bin850.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.718       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66990       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44983E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.791       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10965E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1151       1.0000         .10000E-03   10000.    
    16 'norm      '    .52616E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5466       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17621E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    82.799       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4300       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.717       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10866E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2447       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0439       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=   6365.574     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3161 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5212       -.26204E-06** at limit **
   2  Prefactor     61.757        53.957        .47370E-06   -.27304E-04
   3  Prefactor     .10000E-03    .99108        .68703E-09** at limit **
   4  Prefactor     .10000E-03    12.367       -.88207E-07** at limit **
   5  Prefactor     .10000E-03    47.233        .39458E-07** at limit **
   6  Prefactor     .10000E-03    9.3305       -.13261E-05** at limit **
   7  Prefactor     .66983        9.3164        .67938E-06    .10216E-03
   8  Prefactor     .10000E-03    64.257        .71338E-05** at limit **
   9  Prefactor     22.746        52.480       -.53971E-05   -.14977E-04
  10  Prefactor     .10000E-03    17.899       -.11171E-06** at limit **
  11  Prefactor     14.309        20.345        .31936E-06    .14555E-04
  12  Prefactor     .10000E-03    2.4274       -.24354E-07** at limit **
  13  Prefactor     .10000E-03    2.4038        .10987E-06** at limit **
  14  Prefactor     33.077        29.506        .17099E-06   -.91432E-05
  15  Prefactor     6.0689        10.316        .63413E-06    .86045E-04
  16  norm          .10000E-03    1.7252       -.69078E-06** at limit **
  17  norm          2.5426        3.7716       -.11089E-06   -.16699E-04
  18  Prefactor     .10000E-03    10.303        .96921E-07** at limit **
  19  norm          .10000E-03    91.320       -.55192E-06** at limit **
  20  Prefactor     82.772        99.067       -.40262E-06    .28557E-05
  21  norm          1.4300        .61596        .29767E-07   -.19123E-03
  22  Prefactor     15.717        10.916       -.10061E-06   -.91226E-05
  23  Prefactor     .10000E-03    16.139        .25852E-06** at limit **
  24  norm          .10000E-03    1.0773        .75652E-07** at limit **
  25  Normalizat    1.2448        .20926        .20408E-06   -.18767E-03
  26  Prefactor     1.0439        .17629       -.60312E-06   -.80561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 61.7569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.669831
  Prefactor  = 0.000100001
  Prefactor  = 22.7465
  Prefactor  = 0.0001
  Prefactor  = 14.3088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.0765
  Prefactor  = 6.06891
  norm       = 0.0001
  norm       = 2.54259
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.7723
  norm       = 1.43
  Prefactor  = 15.7168
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.2448
  Prefactor  = 1.04388
 **********
 **   18 **HESSE 
 **********

 FCN=   6365.574     FROM HESSE     STATUS=OK           462 CALLS     3623 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5177        .14609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.757        53.762        .51075E-04   -1.4135    
   3  Prefactor     .10000E-03    1.0265        .15506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.447        .37060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .66983        33.166        .43108E-02   -1.5544    
   8  Prefactor     .10000E-03    72.930        .49338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.746        52.458        .83903E-04   -1.4754    
  10  Prefactor     .10000E-03    17.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.309        20.292        .10586E-03   -1.4951    
  12  Prefactor     .10000E-03    2.4498        .12123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2080        .23826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.077        29.443        .69677E-04   -1.4557    
  15  Prefactor     6.0689        10.345        .16235E-03   -1.5215    
  16  norm          .10000E-03    9.9925        .16485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5426        3.7116        .16779E-03   -1.5389    
  18  Prefactor     .10000E-03    10.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    91.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     82.772        98.832        .22071E-03   -1.3886    
  21  norm          1.4300        .60531        .37650E-04   -1.5469    
  22  Prefactor     15.717        10.911        .10103E-03   -1.4915    
  23  Prefactor     .10000E-03    16.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9284        .15866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2448        .23970        .27322E-03   -.85230    
  26  Prefactor     1.0439        .20316        .25370E-03   -.91281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40265e-10
Minuit parameter uncertainties:
  1  3.7932e-06
  2  53.8038
  3  9.83189e-07
  4  1.0023e-05
  5  5.25459e-06
  6  0.000405514
  7  9.43148
  8  0.000520755
  9  52.5643
  10  1.44086e-05
  11  20.3013
  12  2.98033e-08
  13  5.0715e-05
  14  29.4557
  15  10.3479
  16  0.00013335
  17  3.71198
  18  1.29622e-06
  19  0.000197774
  20  99.0295
  21  0.605312
  22  10.9122
  23  1.02567e-05
  24  1.01246e-05
  25  0.23991
  26  0.203314
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.044e+00  2.033e-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.245e+00  2.399e-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: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189921/likelihoodResults_459648001_459907201_4FGL_J1156.6+0640_daily_bin850.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) = 6365.57405412
delta logL = -0.0001007090641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6365.57395341
delta logL = 4.32009983342e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2580       1.0000          .0000       10.000    
     3 'Normalizat'    1.2448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0439       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=   6365.574     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6849.4        .90712E-02** at limit **
   2  Index         2.2571        8.0577        .50000        .14404E-06
   3  Normalizat    1.2448        .55561E-01    .61772E-01    .55308E-05
   4  Prefactor     1.0439        .47975E-01    .40282E-01    .68078E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25706
  Normalizat = 1.2448
  Prefactor  = 1.04388
 **********
 **   18 **HESSE 
 **********

 FCN=   6365.574     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8837.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2571        7.6169        .50000       -.58067    
   3  Normalizat    1.2448        .20182        .27322E-03   -.85229    
   4  Prefactor     1.0439        .17440        .25370E-03   -.91281    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79767e-12
Minuit parameter uncertainties:
  1  8.74536e-05
  2  65.4192
  3  0.201945
  4  0.17449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189921': 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) = 6365.57395341
delta logL = 2.2546373657e-09

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  8.745e-05  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.257e+00  6.542e+01  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.044e+00  1.745e-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.245e+00  2.019e-01  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/189921/cmap_HighResolution_459648001_459907201_4FGL_J1156.6+0640_daily_bin850.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2021-09-04 17:26:39.237305', job_id='189921', GAL2='1.04', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630801599.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.25e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='850' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 189921: <4FGL_J1156.6+0640_daily_bin850> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin850 179.164 6.6728 459648001 459907201 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 :                                   772.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            897 sec.

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

