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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin549
RA = 179.164, Dec = 6.6728
tmin = 381628801, tmax = 381888001
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='188233', job_status='RUN', time_executed='2021-09-04 17:09:52.390295', time_epoch_executed='1630800592.39' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188233

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188233/ft1_4FGL_J1156.6+0640_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188233/ft2_4FGL_J1156.6+0640_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188233/ft1_4FGL_J1156.6+0640_daily_bin549.fits outfile=/scratch/kocevski/188233/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin549.fits ra=179.164 dec=6.6728 rad=12.0 tmin=381628801.0 tmax=381888001.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 4.03
user 3.71
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188233/ft1_filtered_4FGL_J1156.6+0640_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/188233/ft2_4FGL_J1156.6+0640_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/188233/ltcube_381628801_381888001_4FGL_J1156.6+0640_daily_bin549.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/188233/ft2_4FGL_J1156.6+0640_daily_bin549.fits
.....................!
real 12.04
user 11.60
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188233/ft1_filtered_4FGL_J1156.6+0640_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/188233/ft2_4FGL_J1156.6+0640_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/188233/ltcube_381628801_381888001_4FGL_J1156.6+0640_daily_bin549.fits outfile=/scratch/kocevski/188233/expmap_381628801_381888001_4FGL_J1156.6+0640_daily_bin549.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/188233/ltcube_381628801_381888001_4FGL_J1156.6+0640_daily_bin549.fits
.....................!
real 191.44
user 185.41
sys 5.65

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1156.6+0640 @ 179.164 6.6728

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

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188233/ft1_filtered_4FGL_J1156.6+0640_daily_bin549.fits scfile=/scratch/kocevski/188233/ft2_4FGL_J1156.6+0640_daily_bin549.fits outfile=/scratch/kocevski/188233/cmap_HighResolution_381628801_381888001_4FGL_J1156.6+0640_daily_bin549.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.278       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13852E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13307E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.995       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.007       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1918       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0081       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12191E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .47342       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    61.550       1.0000         .10000E-03   10000.    
    24 'norm      '    10.188       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4801       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72350       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=   6277.484     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3556 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.454        .14953E-05** at limit **
   2  Prefactor     .10000E-03    169.10       -.44182E-05** at limit **
   3  Prefactor     .10000E-03    .77076       -.26232E-07** at limit **
   4  Prefactor     11.280        22.575       -.14345E-05    .11976E-04
   5  Prefactor     .10000E-03    49.707        .18023E-04** at limit **
   6  Prefactor     .10000E-03    5.4575       -.70849E-06** at limit **
   7  Prefactor     .10000E-03    7.5881       -.23258E-06** at limit **
   8  Prefactor     .10294E-03    24.516       -.64314E-05** at limit **
   9  Prefactor     42.910        98.202        .47899E-05    .10668E-03
  10  Prefactor     .10000E-03    12.698       -.20896E-05** at limit **
  11  Prefactor     .10000E-03    13.530       -.16508E-05** at limit **
  12  Prefactor     .10000E-03    2.2239       -.47121E-07** at limit **
  13  Prefactor     6.8584        3.8371        .12786E-06    .15726E-03
  14  Prefactor     21.017        25.150       -.22028E-05   -.10162E-05
  15  Prefactor     7.1929        7.7559       -.31023E-06    .47505E-04
  16  norm          .10000E-03    1.3991        .33231E-07** at limit **
  17  norm          1.3552        7.6821        .33287E-05    .40634E-04
  18  Prefactor     .10000E-03    12.038        .17390E-05** at limit **
  19  norm          3.0490        190.96       -.50606E-05   -.12796E-05
  20  Prefactor     .10000E-03    44.324       -.15330E-04** at limit **
  21  norm          .47381        .51535       -.51756E-06   -.20062E-02
  22  Prefactor     .10000E-03    16.204        .35597E-06** at limit **
  23  Prefactor     61.547        38.759       -.73891E-06    .22267E-04
  24  norm          10.189        2.7859       -.25060E-06    .26890E-03
  25  Normalizat    1.4804        .21277        .45016E-05    .13071E-03
  26  Prefactor     .72330        .16877       -.14479E-05    .39921E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 11.2795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102938
  Prefactor  = 42.9097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85837
  Prefactor  = 21.0165
  Prefactor  = 7.19294
  norm       = 0.0001
  norm       = 1.35515
  Prefactor  = 0.0001
  norm       = 3.04905
  Prefactor  = 0.0001
  norm       = 0.473806
  Prefactor  = 0.0001
  Prefactor  = 61.5474
  norm       = 10.1889
  Normalizat = 1.48039
  Prefactor  = 0.723296
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.484     FROM HESSE     STATUS=OK           462 CALLS     4018 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    173.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .77814        .67911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.280        22.574        .11929E-03   -1.5036    
   5  Prefactor     .10000E-03    49.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4859        .18079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10294E-03    33.485        .90289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.910        115.38        .61139E-04   -1.4397    
  10  Prefactor     .10000E-03    12.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.2391        .11531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8584        3.8368        .11229E-03   -1.5184    
  14  Prefactor     21.017        24.669        .87389E-04   -1.4791    
  15  Prefactor     7.1929        7.7283        .14957E-03   -1.5172    
  16  norm          .10000E-03    1.4497        .18263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3552        5.7391        .22681E-03   -1.5475    
  18  Prefactor     .10000E-03    12.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0490        148.13        .23402E-03   -1.5359    
  20  Prefactor     .10000E-03    44.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .47381        .48197        .53601E-03   -1.5570    
  22  Prefactor     .10000E-03    16.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     61.547        38.704        .51145E-04   -1.4137    
  24  norm          10.189        2.7587        .64386E-04   -1.5069    
  25  Normalizat    1.4804        .24818        .24927E-03   -.78331    
  26  Prefactor     .72330        .19984        .28527E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15152e-09
Minuit parameter uncertainties:
  1  7.97524e-05
  2  0.00140958
  3  4.68527e-06
  4  22.5907
  5  0.000270645
  6  8.84837e-07
  7  4.34521e-05
  8  0.0198496
  9  115.988
  10  4.11923e-05
  11  5.01313e-05
  12  8.79478e-06
  13  3.83697
  14  24.6806
  15  7.72939
  16  3.86295e-06
  17  5.57831
  18  5.00961e-06
  19  42.6162
  20  0.000286824
  21  0.481971
  22  3.40489e-05
  23  38.7201
  24  2.75877
  25  0.248382
  26  0.20004
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.706e-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:  7.233e-01  2.000e-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.480e+00  2.484e-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: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188233/likelihoodResults_381628801_381888001_4FGL_J1156.6+0640_daily_bin549.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) = 6277.48453127
delta logL = -9.60717961789e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.48443521
delta logL = -6.13181327935e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2595       1.0000          .0000       10.000    
     3 'Normalizat'    1.4804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72329       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=   6277.484     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8419.0        .90712E-02** at limit **
   2  Index         2.2618        5.8923        .50000       -.40861E-06
   3  Normalizat    1.4804        .10744        .56373E-01    .63315E-03
   4  Prefactor     .72329        .89877E-01    .64484E-01    .19032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.26176
  Normalizat = 1.4804
  Prefactor  = 0.723286
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.484     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2618        6.1011        .50000       -.57955    
   3  Normalizat    1.4804        .23472        .24927E-03   -.78331    
   4  Prefactor     .72329        .19630        .28528E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01108e-09
Minuit parameter uncertainties:
  1  0.000562689
  2  4.79341
  3  0.234894
  4  0.196491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188233': 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) = 6277.48443521
delta logL = -5.83713699598e-09

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.627e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.262e+00  4.793e+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:  7.233e-01  1.965e-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.480e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-09-04 17:23:13.589570', job_id='188233', GAL2='0.72', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630801393.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-5.84e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='549' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:23:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 188233: <4FGL_J1156.6+0640_daily_bin549> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin549> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:42 2021
Job was executed on host(s) <bullet0224>, 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:23:14 2021
Results reported at Sat Sep  4 17:23:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin549 179.164 6.6728 381628801 381888001 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 :                                   800.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

