/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 160 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin235
RA = 179.164, Dec = 6.6728
tmin = 300240001, tmax = 300499201
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='186742', job_status='RUN', time_executed='2021-09-04 17:04:25.222357', time_epoch_executed='1630800265.22' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186742/ft1_4FGL_J1156.6+0640_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186742/ft2_4FGL_J1156.6+0640_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186742/ft1_4FGL_J1156.6+0640_daily_bin235.fits outfile=/scratch/kocevski/186742/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin235.fits ra=179.164 dec=6.6728 rad=12.0 tmin=300240001.0 tmax=300499201.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.17
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186742/ft1_filtered_4FGL_J1156.6+0640_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/186742/ft2_4FGL_J1156.6+0640_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/186742/ltcube_300240001_300499201_4FGL_J1156.6+0640_daily_bin235.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/186742/ft2_4FGL_J1156.6+0640_daily_bin235.fits
.....................!
real 12.21
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186742/ft1_filtered_4FGL_J1156.6+0640_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/186742/ft2_4FGL_J1156.6+0640_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/186742/ltcube_300240001_300499201_4FGL_J1156.6+0640_daily_bin235.fits outfile=/scratch/kocevski/186742/expmap_300240001_300499201_4FGL_J1156.6+0640_daily_bin235.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/186742/ltcube_300240001_300499201_4FGL_J1156.6+0640_daily_bin235.fits
.....................!
real 190.46
user 185.60
sys 4.53

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/186742/ft1_filtered_4FGL_J1156.6+0640_daily_bin235.fits scfile=/scratch/kocevski/186742/ft2_4FGL_J1156.6+0640_daily_bin235.fits outfile=/scratch/kocevski/186742/cmap_300240001_300499201_4FGL_J1156.6+0640_daily_bin235.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186742/ft1_filtered_4FGL_J1156.6+0640_daily_bin235.fits scfile=/scratch/kocevski/186742/ft2_4FGL_J1156.6+0640_daily_bin235.fits outfile=/scratch/kocevski/186742/cmap_HighResolution_300240001_300499201_4FGL_J1156.6+0640_daily_bin235.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0596       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11750E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.064       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24768E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1279       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4768       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.360       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9801       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.684       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.611       1.0000         .10000E-03   10000.    
    24 'norm      '    3.2650       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97332       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0466       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=   5662.469     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3112 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4920        9.3277        .31725E-06    .17977E-05
   2  Prefactor     .10000E-03    27.949        .29564E-06** at limit **
   3  Prefactor     3.0594        2.5651        .84589E-07   -.69587E-05
   4  Prefactor     .10000E-03    34.415        .12652E-06** at limit **
   5  Prefactor     .10000E-03    61.769       -.73727E-06** at limit **
   6  Prefactor     .10000E-03    3.9876       -.81405E-07** at limit **
   7  Prefactor     .10000E-03    10.378        .38146E-07** at limit **
   8  Prefactor     .10000E-03    7.2615       -.17297E-06** at limit **
   9  Prefactor     25.750        60.082       -.26541E-07   -.12358E-04
  10  Prefactor     .10000E-03    97.454        .50668E-06** at limit **
  11  Prefactor     .10000E-03    29.775       -.60163E-06** at limit **
  12  Prefactor     .10000E-03    3.2108       -.66806E-07** at limit **
  13  Prefactor     3.1283        3.4472        .19794E-06    .71552E-06
  14  Prefactor     .10000E-03    12.344       -.26307E-07** at limit **
  15  Prefactor     3.4762        5.1111        .17820E-05   -.41988E-04
  16  norm          .10000E-03    .58675       -.62046E-07** at limit **
  17  norm          3.1081        4.0761        .34680E-06   -.23592E-04
  18  Prefactor     21.359        27.330        .77051E-07   -.96420E-06
  19  norm          .10000E-03    16.031       -.26141E-07** at limit **
  20  Prefactor     .10000E-03    53.170        .42694E-06** at limit **
  21  norm          2.9801        .80543       -.32226E-07   -.55043E-04
  22  Prefactor     31.686        16.073        .13084E-07   -.73606E-05
  23  Prefactor     21.597        37.690        .16982E-06    .14834E-04
  24  norm          3.2649        1.8335        .19937E-07   -.28757E-04
  25  Normalizat    .97337        .21087       -.48612E-06   -.10227E-05
  26  Prefactor     1.0466        .17872        .36786E-07   -.15050E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.49202
  Prefactor  = 0.0001
  Prefactor  = 3.05941
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12833
  Prefactor  = 0.0001
  Prefactor  = 3.4762
  norm       = 0.0001
  norm       = 3.10812
  Prefactor  = 21.3592
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98013
  Prefactor  = 31.6856
  Prefactor  = 21.5969
  norm       = 3.26491
  Normalizat = 0.973373
  Prefactor  = 1.04664
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.469     FROM HESSE     STATUS=OK           456 CALLS     3568 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4920        9.3292        .17143E-03   -1.5239    
   2  Prefactor     .10000E-03    28.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0594        2.5603        .10531E-03   -1.5358    
   4  Prefactor     .10000E-03    34.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    62.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0019        .14673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.750        60.106        .78467E-04   -1.4693    
  10  Prefactor     .10000E-03    98.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2963        .26208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1283        3.4269        .13963E-03   -1.5354    
  14  Prefactor     .10000E-03    12.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4762        5.1134        .10062E-02   -1.5335    
  16  norm          .10000E-03    .58978        .56372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1081        4.0665        .15274E-03   -1.5355    
  18  Prefactor     21.359        27.325        .86664E-04   -1.4783    
  19  norm          .10000E-03    16.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9801        .80542        .31019E-04   -1.5363    
  22  Prefactor     31.686        16.061        .71185E-04   -1.4582    
  23  Prefactor     21.597        37.724        .86161E-04   -1.4778    
  24  norm          3.2649        1.8309        .72978E-04   -1.5347    
  25  Normalizat    .97337        .24153        .27727E-03   -.93928    
  26  Prefactor     1.0466        .20504        .23928E-03   -.91191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61194e-11
Minuit parameter uncertainties:
  1  9.33172
  2  9.69058e-05
  3  2.56035
  4  6.21634e-05
  5  0.000477848
  6  1.20103e-06
  7  2.94769e-07
  8  2.55072e-06
  9  60.248
  10  0.000279355
  11  0.000169662
  12  4.14367e-06
  13  3.42712
  14  6.01707e-06
  15  5.11402
  16  2.11928e-06
  17  4.06681
  18  27.341
  19  6.79784e-06
  20  0.000304628
  21  0.805421
  22  16.0635
  23  37.7657
  24  1.83092
  25  0.241797
  26  0.205198
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  4.778e-04  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.047e+00  2.052e-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:  9.734e-01  2.418e-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: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186742/likelihoodResults_300240001_300499201_4FGL_J1156.6+0640_daily_bin235.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) = 5662.46955019
delta logL = -7.65750801293e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5662.46947381
delta logL = -1.98464476853e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6165       1.0000          .0000       10.000    
     3 'Normalizat'    .97337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0466       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=   5662.469     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      230 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.202        .90712E-02** at limit **
   2  Index         2.5943        7.9694        .50000        .36848E-05
   3  Normalizat    .97337        .47274E-02    .45832E-01    .29754E-04
   4  Prefactor     1.0466        .42350E-02    .40111E-01    .18049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.59428
  Normalizat = 0.973373
  Prefactor  = 1.04664
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.469     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    287.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5943        8.6453        .50000       -.50196    
   3  Normalizat    .97337        .11729E-01    .27727E-03   -.93928    
   4  Prefactor     1.0466        .10511E-01    .23928E-03   -.91191    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.39433e-08
Minuit parameter uncertainties:
  1  0.00113585
  2  377.424
  3  0.0117291
  4  0.0105107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186742': 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) = 5662.46947376
delta logL = -1.4735996956e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.136e-03  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.594e+00  3.774e+02  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.047e+00  1.051e-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:  9.734e-01  1.173e-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/186742/cmap_HighResolution_300240001_300499201_4FGL_J1156.6+0640_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-04 17:16:33.800573', job_id='186742', GAL2='1.05', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630800993.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='235' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 186742: <4FGL_J1156.6+0640_daily_bin235> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin235> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:37 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:01:38 2021
Terminated at Sat Sep  4 17:16:34 2021
Results reported at Sat Sep  4 17:16:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin235 179.164 6.6728 300240001 300499201 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 :                                   728.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

