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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin556
RA = 179.164, Dec = 6.6728
tmin = 383443201, tmax = 383702401
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='188244', job_status='RUN', time_executed='2021-09-04 17:10:48.716989', time_epoch_executed='1630800648.72' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188244/ft1_4FGL_J1156.6+0640_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188244/ft2_4FGL_J1156.6+0640_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188244/ft1_4FGL_J1156.6+0640_daily_bin556.fits outfile=/scratch/kocevski/188244/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin556.fits ra=179.164 dec=6.6728 rad=12.0 tmin=383443201.0 tmax=383702401.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.37
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/188244/ft2_4FGL_J1156.6+0640_daily_bin556.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/188244/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin556.fits evtable="EVENTS" outfile="/scratch/kocevski/188244/ft1_filtered_4FGL_J1156.6+0640_daily_bin556.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188244/ft1_filtered_4FGL_J1156.6+0640_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/188244/ft2_4FGL_J1156.6+0640_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/188244/ltcube_383443201_383702401_4FGL_J1156.6+0640_daily_bin556.fits outfile=/scratch/kocevski/188244/expmap_383443201_383702401_4FGL_J1156.6+0640_daily_bin556.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/188244/ltcube_383443201_383702401_4FGL_J1156.6+0640_daily_bin556.fits
.....................!
real 189.81
user 184.82
sys 4.55

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/188244/ft1_filtered_4FGL_J1156.6+0640_daily_bin556.fits scfile=/scratch/kocevski/188244/ft2_4FGL_J1156.6+0640_daily_bin556.fits outfile=/scratch/kocevski/188244/cmap_383443201_383702401_4FGL_J1156.6+0640_daily_bin556.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188244/ft1_filtered_4FGL_J1156.6+0640_daily_bin556.fits scfile=/scratch/kocevski/188244/ft2_4FGL_J1156.6+0640_daily_bin556.fits outfile=/scratch/kocevski/188244/cmap_HighResolution_383443201_383702401_4FGL_J1156.6+0640_daily_bin556.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.475       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1416       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.691       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2828       1.0000         .10000E-03   10000.    
    17 'norm      '    .54310E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7636       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7427       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.063       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16730E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    19.141       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0847       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86907       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=   5661.500     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     2749 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.484        12.952       -.42571E-05    .43631E-03
   2  Prefactor     .10000E-03    14.635       -.29645E-07** at limit **
   3  Prefactor     6.3635        3.4280       -.73953E-07   -.75472E-04
   4  Prefactor     35.197        28.748       -.16009E-05    .80155E-04
   5  Prefactor     .10000E-03    26.177        .43938E-05** at limit **
   6  Prefactor     10.572        9.2340       -.12620E-05    .90186E-04
   7  Prefactor     1.1475        6.0772       -.27970E-05   -.91283E-03
   8  Prefactor     .10000E-03    6.7527        .12403E-07** at limit **
   9  Prefactor     .10000E-03    39.502        .17987E-05** at limit **
  10  Prefactor     .10000E-03    22.555       -.34803E-05** at limit **
  11  Prefactor     .10000E-03    12.034        .19434E-07** at limit **
  12  Prefactor     2.1425        3.5375       -.19862E-06   -.38870E-03
  13  Prefactor     5.6892        4.1336       -.14412E-06   -.20525E-03
  14  Prefactor     32.601        25.328        .92319E-06    .99518E-05
  15  Prefactor     .10000E-03    3.8549       -.17767E-08** at limit **
  16  norm          1.2823        1.7408       -.55927E-07   -.16273E-03
  17  norm          .13263        1.9652       -.19717E-06   -.81338E-04
  18  Prefactor     .10000E-03    17.971       -.62350E-07** at limit **
  19  norm          .57907        50.828       -.20370E-05   -.35881E-05
  20  Prefactor     .10000E-03    39.524        .18826E-05** at limit **
  21  norm          1.7430        .67682        .10078E-07    .98139E-03
  22  Prefactor     31.074        16.311        .20264E-05   -.18347E-03
  23  Prefactor     .10000E-03    50.910       -.23699E-05** at limit **
  24  norm          19.137        3.3392       -.35252E-07    .29444E-03
  25  Normalizat    1.0836        .21062        .14191E-05    .65074E-04
  26  Prefactor     .86972        .18050       -.15959E-06    .13839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4844
  Prefactor  = 0.0001
  Prefactor  = 6.36348
  Prefactor  = 35.1972
  Prefactor  = 0.0001
  Prefactor  = 10.572
  Prefactor  = 1.14749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1425
  Prefactor  = 5.68924
  Prefactor  = 32.6011
  Prefactor  = 0.0001
  norm       = 1.28232
  norm       = 0.132627
  Prefactor  = 0.0001
  norm       = 0.579069
  Prefactor  = 0.0001
  norm       = 1.74299
  Prefactor  = 31.0743
  Prefactor  = 0.0001
  norm       = 19.1372
  Normalizat = 1.08358
  Prefactor  = 0.869716
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.500     FROM HESSE     STATUS=OK           464 CALLS     3213 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.484        12.602        .90760E-04   -1.4825    
   2  Prefactor     .10000E-03    14.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3635        3.4341        .97039E-04   -1.5203    
   4  Prefactor     35.197        28.630        .67554E-04   -1.4521    
   5  Prefactor     .10000E-03    26.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.572        9.2303        .12325E-03   -1.5058    
   7  Prefactor     1.1475        7.3063        .39232E-03   -1.5494    
   8  Prefactor     .10000E-03    6.7756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1425        3.5046        .16496E-03   -1.5415    
  13  Prefactor     5.6892        4.1079        .11700E-03   -1.5231    
  14  Prefactor     32.601        25.348        .70082E-04   -1.4565    
  15  Prefactor     .10000E-03    3.8598        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2823        1.7162        .11210E-03   -1.5481    
  17  norm          .13263        19.106        .17818E-02   -1.5635    
  18  Prefactor     .10000E-03    17.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .57907        60.978        .13766       -1.5556    
  20  Prefactor     .10000E-03    39.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7430        .67250        .34907E-04   -1.5444    
  22  Prefactor     31.074        16.150        .71890E-04   -1.4592    
  23  Prefactor     .10000E-03    51.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          19.137        3.3366        .54889E-04   -1.4833    
  25  Normalizat    1.0836        .24571        .27625E-03   -.90281    
  26  Prefactor     .86972        .20980        .26790E-03   -.97207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28857e-08
Minuit parameter uncertainties:
  1  12.6033
  2  4.03855e-05
  3  3.43421
  4  28.6409
  5  0.000184955
  6  9.23158
  7  5.79176
  8  2.17308e-07
  9  8.40905e-05
  10  0.000155884
  11  4.45417e-06
  12  3.50496
  13  4.10809
  14  25.3565
  15  4.5379e-07
  16  1.71626
  17  3.18351
  18  1.61512e-05
  19  11.8959
  20  0.000102386
  21  0.672499
  22  16.1521
  23  0.000281801
  24  3.33663
  25  0.245967
  26  0.209992
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.850e-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:  8.697e-01  2.100e-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.084e+00  2.460e-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: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188244/likelihoodResults_383443201_383702401_4FGL_J1156.6+0640_daily_bin556.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) = 5661.50011661
delta logL = -0.000182780604518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5661.4999349
delta logL = -1.06153856905e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6581       1.0000          .0000       10.000    
     3 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86972       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=   5661.500     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10392E-03    10.859        .18142E-01** at limit **
   2  Index         2.5662        6.7433        .50000        .16375E-04
   3  Normalizat    1.0836        .39178E-02    .27625E-03   -.12305E-03
   4  Prefactor     .86971        .34625E-02    .26790E-03   -.12905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103919
  Index      = 2.56623
  Normalizat = 1.08358
  Prefactor  = 0.869714
 **********
 **   18 **HESSE 
 **********

 FCN=   5661.500     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10392E-03    77.677        .32106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5662        6.0311        .50000       -.50837    
   3  Normalizat    1.0836        .10523E-01    .11050E-04   -.90281    
   4  Prefactor     .86971        .92999E-02    .10716E-04   -.97208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08477e-09
Minuit parameter uncertainties:
  1  0.0349394
  2  253.606
  3  0.0105228
  4  0.00929996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188244': 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) = 5661.49993463
delta logL = -7.99632289272e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.039e-04  3.494e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.566e+00  2.536e+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:  8.697e-01  9.300e-03  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.084e+00  1.052e-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/188244/cmap_HighResolution_383443201_383702401_4FGL_J1156.6+0640_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-04 17:22:36.465776', job_id='188244', GAL2='0.87', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630801356.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-8.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='556' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:22:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 188244: <4FGL_J1156.6+0640_daily_bin556> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin556> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:43 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:44 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:06:44 2021
Terminated at Sat Sep  4 17:22:37 2021
Results reported at Sat Sep  4 17:22:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin556 179.164 6.6728 383443201 383702401 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 :                                   707.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             235.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

