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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin612
RA = 179.164, Dec = 6.6728
tmin = 397958401, tmax = 398217601
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='189550', job_status='RUN', time_executed='2021-09-04 17:14:14.067472', time_epoch_executed='1630800854.07' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189550

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189550/ft1_4FGL_J1156.6+0640_daily_bin612.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189550/ft2_4FGL_J1156.6+0640_daily_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189550/ft1_4FGL_J1156.6+0640_daily_bin612.fits outfile=/scratch/kocevski/189550/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin612.fits ra=179.164 dec=6.6728 rad=12.0 tmin=397958401.0 tmax=398217601.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.52
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189550/ft1_filtered_4FGL_J1156.6+0640_daily_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/189550/ft2_4FGL_J1156.6+0640_daily_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/189550/ltcube_397958401_398217601_4FGL_J1156.6+0640_daily_bin612.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/189550/ft2_4FGL_J1156.6+0640_daily_bin612.fits
.....................!
real 11.79
user 11.46
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189550/ft1_filtered_4FGL_J1156.6+0640_daily_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/189550/ft2_4FGL_J1156.6+0640_daily_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/189550/ltcube_397958401_398217601_4FGL_J1156.6+0640_daily_bin612.fits outfile=/scratch/kocevski/189550/expmap_397958401_398217601_4FGL_J1156.6+0640_daily_bin612.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/189550/ltcube_397958401_398217601_4FGL_J1156.6+0640_daily_bin612.fits
.....................!
real 190.40
user 185.04
sys 5.00

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/189550/ft1_filtered_4FGL_J1156.6+0640_daily_bin612.fits scfile=/scratch/kocevski/189550/ft2_4FGL_J1156.6+0640_daily_bin612.fits outfile=/scratch/kocevski/189550/cmap_397958401_398217601_4FGL_J1156.6+0640_daily_bin612.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.54
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.624       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8821       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2495       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9397       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1661       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6304       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.174       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0885       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5804       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.705       1.0000         .10000E-03   10000.    
    24 'norm      '    1.2029       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3599       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89495       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=   6141.372     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3083 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8998       -.68936E-07** at limit **
   2  Prefactor     20.620        34.399        .29306E-06   -.56849E-06
   3  Prefactor     3.8820        2.6233        .35245E-07    .19955E-04
   4  Prefactor     2.2468        41.835        .36972E-05   -.48205E-04
   5  Prefactor     .10000E-03    51.905       -.20668E-06** at limit **
   6  Prefactor     .10000E-03    3.9621       -.52313E-07** at limit **
   7  Prefactor     .10000E-03    3.0727        .34726E-07** at limit **
   8  Prefactor     .10000E-03    4.8111       -.18527E-07** at limit **
   9  Prefactor     .10000E-03    29.174        .33758E-06** at limit **
  10  Prefactor     .10000E-03    11.948       -.33851E-07** at limit **
  11  Prefactor     31.603        27.519        .65418E-07    .28312E-04
  12  Prefactor     2.9397        3.0153        .22191E-07    .18561E-04
  13  Prefactor     4.1662        3.3410        .33454E-07    .43604E-04
  14  Prefactor     .10000E-03    15.563       -.20327E-06** at limit **
  15  Prefactor     .10000E-03    5.3143        .28728E-07** at limit **
  16  norm          .10000E-03    1.2970        .50824E-07** at limit **
  17  norm          6.6322        4.6051        .19543E-06    .40987E-03
  18  Prefactor     24.157        42.106        .23903E-06   -.22303E-04
  19  norm          .10000E-03    25.208       -.33283E-06** at limit **
  20  Prefactor     .10000E-03    86.969       -.73396E-06** at limit **
  21  norm          1.0885        .64643        .14813E-07    .43334E-03
  22  Prefactor     1.5531        16.214        .96703E-05    .34242E-04
  23  Prefactor     15.753        28.862       -.34732E-05    .52640E-04
  24  norm          1.2028        1.7547        .50109E-08   -.93114E-04
  25  Normalizat    1.3597        .21379       -.13603E-06    .83767E-04
  26  Prefactor     .89511        .17654       -.48794E-06    .62436E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.6201
  Prefactor  = 3.88201
  Prefactor  = 2.24676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6033
  Prefactor  = 2.93971
  Prefactor  = 4.1662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.63222
  Prefactor  = 24.1574
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0885
  Prefactor  = 1.5531
  Prefactor  = 15.7526
  norm       = 1.20282
  Normalizat = 1.35972
  Prefactor  = 0.89511
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.372     FROM HESSE     STATUS=OK           460 CALLS     3543 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9179        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.620        34.516        .88197E-04   -1.4799    
   3  Prefactor     3.8820        2.6238        .10004E-03   -1.5314    
   4  Prefactor     2.2468        42.132        .13699E-02   -1.5408    
   5  Prefactor     .10000E-03    51.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9692        .15234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0786        .13414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8189        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.603        27.454        .71279E-04   -1.4583    
  12  Prefactor     2.9397        3.0094        .13239E-03   -1.5365    
  13  Prefactor     4.1662        3.3410        .12248E-03   -1.5300    
  14  Prefactor     .10000E-03    15.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3269        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4174        .17255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.6322        4.5835        .12450E-03   -1.5193    
  18  Prefactor     24.157        42.127        .81471E-04   -1.4725    
  19  norm          .10000E-03    25.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    87.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0885        .63132        .43241E-04   -1.5499    
  22  Prefactor     1.5531        16.343        .16892E-02   -1.5459    
  23  Prefactor     15.753        28.967        .10107E-03   -1.4914    
  24  norm          1.2028        1.7187        .11774E-03   -1.5489    
  25  Normalizat    1.3597        .25189        .26371E-03   -.81801    
  26  Prefactor     .89511        .20599        .26811E-03   -.96312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42684e-10
Minuit parameter uncertainties:
  1  5.22542e-06
  2  34.5496
  3  2.6239
  4  19.4742
  5  5.3166e-05
  6  7.34186e-06
  7  4.16921e-06
  8  6.54579e-06
  9  0.000182066
  10  4.52587e-06
  11  27.4651
  12  3.0096
  13  3.34117
  14  7.83504e-05
  15  2.65103e-06
  16  3.5331e-06
  17  4.5837
  18  42.1785
  19  0.000108439
  20  0.000281759
  21  0.631327
  22  10.0795
  23  28.9932
  24  1.71876
  25  0.252119
  26  0.206171
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.317e-05  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.951e-01  2.062e-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.360e+00  2.521e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189550/likelihoodResults_397958401_398217601_4FGL_J1156.6+0640_daily_bin612.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) = 6141.37190906
delta logL = -9.16490162126e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6141.37181745
delta logL = -3.61396814696e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2616       1.0000          .0000       10.000    
     3 'Normalizat'    1.3597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89511       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=   6141.372     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      235 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2121.2        .90712E-02** at limit **
   2  Index         2.2689        5.8117        .50000       -.13029E-05
   3  Normalizat    1.3597        .37408E-01    .59628E-01   -.34713E-05
   4  Prefactor     .89511        .31792E-01    .44943E-01    .15677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26895
  Normalizat = 1.35972
  Prefactor  = 0.89511
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.372     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7994.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2689        5.1396        .50000       -.57783    
   3  Normalizat    1.3597        .86097E-01    .26371E-03   -.81801    
   4  Prefactor     .89511        .73187E-01    .26811E-03   -.96312    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.374e-10
Minuit parameter uncertainties:
  1  0.00129496
  2  52.3574
  3  0.0861058
  4  0.0731952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189550': 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) = 6141.37181743
delta logL = -1.65582605405e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.295e-03  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.269e+00  5.236e+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:  8.951e-01  7.320e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.360e+00  8.611e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.164 6.673

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/189550/cmap_HighResolution_397958401_398217601_4FGL_J1156.6+0640_daily_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-04 17:26:49.064389', job_id='189550', GAL2='0.90', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630801609.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-1.66e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='612' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 189550: <4FGL_J1156.6+0640_daily_bin612> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin612 179.164 6.6728 397958401 398217601 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 :                                   754.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

