/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 211 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_bin204
RA = 179.164, Dec = 6.6728
tmin = 292204801, tmax = 292464001
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='186694', job_status='RUN', time_executed='2021-09-04 17:05:16.819092', time_epoch_executed='1630800316.82' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186694/ft1_4FGL_J1156.6+0640_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186694/ft2_4FGL_J1156.6+0640_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186694/ft1_4FGL_J1156.6+0640_daily_bin204.fits outfile=/scratch/kocevski/186694/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin204.fits ra=179.164 dec=6.6728 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.48
user 9.10
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186694/ft1_filtered_4FGL_J1156.6+0640_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/186694/ft2_4FGL_J1156.6+0640_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/186694/ltcube_292204801_292464001_4FGL_J1156.6+0640_daily_bin204.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/186694/ft2_4FGL_J1156.6+0640_daily_bin204.fits
.....................!
real 11.53
user 11.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186694/ft1_filtered_4FGL_J1156.6+0640_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/186694/ft2_4FGL_J1156.6+0640_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/186694/ltcube_292204801_292464001_4FGL_J1156.6+0640_daily_bin204.fits outfile=/scratch/kocevski/186694/expmap_292204801_292464001_4FGL_J1156.6+0640_daily_bin204.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/186694/ltcube_292204801_292464001_4FGL_J1156.6+0640_daily_bin204.fits
.....................!
real 191.15
user 185.70
sys 4.86

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/186694/ft1_filtered_4FGL_J1156.6+0640_daily_bin204.fits scfile=/scratch/kocevski/186694/ft2_4FGL_J1156.6+0640_daily_bin204.fits outfile=/scratch/kocevski/186694/cmap_292204801_292464001_4FGL_J1156.6+0640_daily_bin204.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    99.313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.573       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .86169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.453       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.605       1.0000         .10000E-03   10000.    
    16 'norm      '    .38554       1.0000         .10000E-03   10000.    
    17 'norm      '    .32105E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1829       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.663       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10584E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .62979       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2013       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=   2745.571     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3149 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    49.511        .73222E-07** at limit **
   2  Prefactor     7.8424        64.413       -.60782E-06    .14837E-04
   3  Prefactor     .10000E-03    1.1326       -.66562E-07** at limit **
   4  Prefactor     .10000E-03    25.035       -.15628E-06** at limit **
   5  Prefactor     99.672        183.11       -.39274E-05    .50608E-04
   6  Prefactor     3.1844        53.340        .75122E-05   -.44674E-04
   7  Prefactor     .10000E-03    14.770        .54026E-06** at limit **
   8  Prefactor     41.565        28.260       -.70366E-06    .12859E-04
   9  Prefactor     .10000E-03    106.08       -.52231E-06** at limit **
  10  Prefactor     .10000E-03    35.451        .68206E-06** at limit **
  11  Prefactor     .10000E-03    20.659       -.15202E-06** at limit **
  12  Prefactor     .86240        3.4427        .41624E-06   -.35987E-04
  13  Prefactor     .10000E-03    1.5432       -.88050E-07** at limit **
  14  Prefactor     10.410        44.946        .67414E-05    .11190E-03
  15  Prefactor     44.597        41.847        .23228E-05    .62430E-04
  16  norm          .38545        8.3572       -.37145E-06   -.53666E-03
  17  norm          .10002E-03    5.8163       -.28992E-05** at limit **
  18  Prefactor     .10000E-03    27.914       -.20422E-06** at limit **
  19  norm          .10000E-03    35.112       -.71432E-07** at limit **
  20  Prefactor     .10000E-03    164.62       -.48232E-06** at limit **
  21  norm          3.1829        1.3342        .36531E-06    .21105E-02
  22  Prefactor     18.665        19.205       -.98042E-08    .48967E-04
  23  Prefactor     .10000E-03    53.287       -.37644E-06** at limit **
  24  norm          .10000E-03    2.4553       -.48719E-06** at limit **
  25  Normalizat    .62989        .29573       -.36228E-06    .21539E-03
  26  Prefactor     1.2010        .24889        .19261E-06    .26044E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.84239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.6717
  Prefactor  = 3.1844
  Prefactor  = 0.0001
  Prefactor  = 41.5649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.862402
  Prefactor  = 0.0001
  Prefactor  = 10.4103
  Prefactor  = 44.597
  norm       = 0.385447
  norm       = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.18287
  Prefactor  = 18.6649
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.629885
  Prefactor  = 1.20098
 **********
 **   18 **HESSE 
 **********

 FCN=   2745.571     FROM HESSE     STATUS=OK           448 CALLS     3597 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    50.936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.8424        64.005        .14372E-03   -1.5148    
   3  Prefactor     .10000E-03    1.1354        .54450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     99.672        180.74        .20170E-03   -1.3708    
   6  Prefactor     3.1844        49.515        .22779E-03   -1.5351    
   7  Prefactor     .10000E-03    14.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.565        28.190        .62171E-04   -1.4418    
   9  Prefactor     .10000E-03    106.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .86240        3.3556        .18682E-03   -1.5522    
  13  Prefactor     .10000E-03    1.5452        .63525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.410        44.188        .12393E-03   -1.5063    
  15  Prefactor     44.597        55.798        .60030E-04   -1.4371    
  16  norm          .38545        82.026        .21189E-02   -1.5584    
  17  norm          .10002E-03    15.790        .21708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    35.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    164.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1829        1.3359        .35741E-04   -1.5351    
  22  Prefactor     18.665        19.201        .92712E-04   -1.4844    
  23  Prefactor     .10000E-03    53.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.5886        .15722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .62989        .33658        .33204E-03   -1.0673    
  26  Prefactor     1.2010        .28916        .21977E-03   -.86301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04762e-08
Minuit parameter uncertainties:
  1  5.5813e-05
  2  44.8739
  3  1.23875e-06
  4  1.99206e-05
  5  181.748
  6  25.1382
  7  5.86917e-05
  8  28.1995
  9  0.000283428
  10  7.28423e-05
  11  1.17034e-05
  12  3.35629
  13  4.66482e-07
  14  42.9495
  15  55.8636
  16  11.2599
  17  0.000991762
  18  2.32826e-05
  19  2.29868e-05
  20  0.000150267
  21  1.33588
  22  19.2077
  23  2.55431e-06
  24  8.63158e-05
  25  0.337686
  26  0.289539
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  9.967e+01  1.817e+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:  1.201e+00  2.895e-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:  6.299e-01  3.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186694/likelihoodResults_292204801_292464001_4FGL_J1156.6+0640_daily_bin204.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2745.57056029
delta logL = 0.00075462020186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2745.57001748
delta logL = 0.0012974337551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.006       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3840       1.0000          .0000       10.000    
     3 'Normalizat'    .62666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2022       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2745.570     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      275 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.766        231.44        .20836E-03    .16205E-04
   2  Index         2.3884        1.4856        .72415E-02    .34388E-04
   3  Normalizat    .62653        .32924        .33290E-03    .98439E-04
   4  Prefactor     1.2031        .28926        .21961E-03   -.17560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.7663
  Index      = 2.38836
  Normalizat = 0.62653
  Prefactor  = 1.20309
 **********
 **   18 **HESSE 
 **********

 FCN=   2745.570     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.766        213.61        .83343E-05   -1.3779    
   2  Index         2.3884        1.3705        .28966E-03   -.54958    
   3  Normalizat    .62653        .32826        .13316E-04   -1.0687    
   4  Prefactor     1.2031        .28860        .43923E-04   -.86236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67043e-10
Minuit parameter uncertainties:
  1  215.423
  2  1.39527
  3  0.329292
  4  0.288983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186694': 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) = 2745.56999437
delta logL = 0.00132054705955

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  9.277e+01  2.154e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.388e+00  1.395e+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.203e+00  2.890e-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:  6.265e-01  3.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/186694/cmap_HighResolution_292204801_292464001_4FGL_J1156.6+0640_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', job_status='DONE', photon_flux_upper_limit='1.89e-07', time_completed='2021-09-04 17:14:17.510310', job_id='186694', GAL2='1.20', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630800857.51', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.32e-03', ts2='0.42', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='204' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 186694: <4FGL_J1156.6+0640_daily_bin204> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin204> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:34 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:35 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:35 2021
Terminated at Sat Sep  4 17:14:18 2021
Results reported at Sat Sep  4 17:14:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin204 179.164 6.6728 292204801 292464001 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 :                                   537.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

