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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin469
RA = 179.164, Dec = 6.6728
tmin = 360892801, tmax = 361152001
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='188114', job_status='RUN', time_executed='2021-09-04 17:09:00.750078', time_epoch_executed='1630800540.75' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188114/ft1_4FGL_J1156.6+0640_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188114/ft2_4FGL_J1156.6+0640_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188114/ft1_4FGL_J1156.6+0640_daily_bin469.fits outfile=/scratch/kocevski/188114/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin469.fits ra=179.164 dec=6.6728 rad=12.0 tmin=360892801.0 tmax=361152001.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.59
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188114/ft1_filtered_4FGL_J1156.6+0640_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/188114/ft2_4FGL_J1156.6+0640_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/188114/ltcube_360892801_361152001_4FGL_J1156.6+0640_daily_bin469.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/188114/ft2_4FGL_J1156.6+0640_daily_bin469.fits
.....................!
real 12.73
user 12.25
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188114/ft1_filtered_4FGL_J1156.6+0640_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/188114/ft2_4FGL_J1156.6+0640_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/188114/ltcube_360892801_361152001_4FGL_J1156.6+0640_daily_bin469.fits outfile=/scratch/kocevski/188114/expmap_360892801_361152001_4FGL_J1156.6+0640_daily_bin469.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/188114/ltcube_360892801_361152001_4FGL_J1156.6+0640_daily_bin469.fits
.....................!
real 192.79
user 187.37
sys 4.85

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/188114/ft1_filtered_4FGL_J1156.6+0640_daily_bin469.fits scfile=/scratch/kocevski/188114/ft2_4FGL_J1156.6+0640_daily_bin469.fits outfile=/scratch/kocevski/188114/cmap_360892801_361152001_4FGL_J1156.6+0640_daily_bin469.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188114/ft1_filtered_4FGL_J1156.6+0640_daily_bin469.fits scfile=/scratch/kocevski/188114/ft2_4FGL_J1156.6+0640_daily_bin469.fits outfile=/scratch/kocevski/188114/cmap_HighResolution_360892801_361152001_4FGL_J1156.6+0640_daily_bin469.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.667       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.238       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7291       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    90.134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40902E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2492       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3917       1.0000         .10000E-03   10000.    
    17 'norm      '    11.599       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.435       1.0000         .10000E-03   10000.    
    19 'norm      '    17.446       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.766       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3085       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0112       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8057       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1369       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92863       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=   5851.941     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3063 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.664        14.586        .85599E-06    .76462E-04
   2  Prefactor     31.222        36.982       -.19266E-04    .45208E-04
   3  Prefactor     8.5143        3.4834       -.80482E-06    .14371E-03
   4  Prefactor     13.093        18.419       -.25778E-05    .21599E-04
   5  Prefactor     .10000E-03    73.632        .10855E-04** at limit **
   6  Prefactor     7.7286        8.4911        .31014E-05    .10478E-03
   7  Prefactor     .10000E-03    3.4334       -.10153E-06** at limit **
   8  Prefactor     .10000E-03    7.1310        .28912E-05** at limit **
   9  Prefactor     90.043        105.93       -.91101E-04    .23259E-04
  10  Prefactor     .10000E-03    20.616       -.57361E-06** at limit **
  11  Prefactor     .10000E-03    7.3446       -.10907E-05** at limit **
  12  Prefactor     .10000E-03    1.7391       -.46159E-06** at limit **
  13  Prefactor     .10000E-03    1.3787        .82965E-08** at limit **
  14  Prefactor     3.2108        49.215       -.59093E-04   -.20639E-04
  15  Prefactor     .10000E-03    6.4389       -.98329E-06** at limit **
  16  norm          2.3924        1.9882       -.32920E-06    .71698E-04
  17  norm          11.600        5.1248        .89236E-07   -.18584E-02
  18  Prefactor     40.437        29.336        .15541E-05    .67099E-04
  19  norm          17.450        39.804        .53244E-05    .26572E-04
  20  Prefactor     10.754        132.42       -.34548E-04    .60540E-05
  21  norm          1.3085        .65758       -.30210E-06    .57978E-03
  22  Prefactor     .10000E-03    4.4870        .77351E-06** at limit **
  23  Prefactor     4.9881        47.888       -.52102E-04   -.71586E-06
  24  norm          2.8058        1.5587       -.16765E-06    .23185E-03
  25  Normalizat    1.1374        .21690        .12681E-04   -.77756E-04
  26  Prefactor     .92821        .18039        .27227E-05    .52822E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.6639
  Prefactor  = 31.2219
  Prefactor  = 8.51431
  Prefactor  = 13.0935
  Prefactor  = 0.0001
  Prefactor  = 7.72862
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 90.0429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.21081
  Prefactor  = 0.0001
  norm       = 2.39235
  norm       = 11.6004
  Prefactor  = 40.4366
  norm       = 17.4497
  Prefactor  = 10.7537
  norm       = 1.30847
  Prefactor  = 0.000100001
  Prefactor  = 4.98806
  norm       = 2.80576
  Normalizat = 1.13741
  Prefactor  = 0.928208
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.941     FROM HESSE     STATUS=OK           462 CALLS     3525 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.664        14.605        .74827E-04   -1.4637    
   2  Prefactor     31.222        37.083        .71689E-04   -1.4590    
   3  Prefactor     8.5143        3.4864        .87059E-04   -1.5124    
   4  Prefactor     13.093        18.419        .11070E-03   -1.4984    
   5  Prefactor     .10000E-03    73.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7286        8.4860        .14424E-03   -1.5152    
   7  Prefactor     .10000E-03    3.4407        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     90.043        105.97        .21162E-03   -1.3807    
  10  Prefactor     .10000E-03    20.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4775        .19637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3944        .87674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2108        49.133        .22469E-03   -1.5350    
  15  Prefactor     .10000E-03    6.4667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3924        1.9880        .95363E-04   -1.5399    
  17  norm          11.600        5.1208        .48410E-03   -1.5027    
  18  Prefactor     40.437        29.338        .63037E-04   -1.4435    
  19  norm          17.450        39.908        .95890E-04   -1.4872    
  20  Prefactor     10.754        132.80        .12210E-03   -1.5052    
  21  norm          1.3085        .64904        .40235E-04   -1.5479    
  22  Prefactor     .10000E-03    4.4955        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.9881        48.061        .17964E-03   -1.5261    
  24  norm          2.8058        1.5578        .68707E-04   -1.5373    
  25  Normalizat    1.1374        .25488        .27682E-03   -.88560    
  26  Prefactor     .92821        .21247        .26167E-03   -.95162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.563e-09
Minuit parameter uncertainties:
  1  14.6067
  2  37.1104
  3  3.48649
  4  18.4267
  5  6.62313e-05
  6  8.48733
  7  2.19615e-05
  8  0.000301725
  9  106.193
  10  2.14092e-05
  11  3.24384e-05
  12  0.000136951
  13  9.45453e-07
  14  25.1446
  15  4.59778e-05
  16  1.98809
  17  5.12098
  18  29.3483
  19  39.9695
  20  75.7888
  21  0.649041
  22  0.00011903
  23  30.9989
  24  1.55778
  25  0.255153
  26  0.212662
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  6.623e-05  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.282e-01  2.127e-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.137e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188114/likelihoodResults_360892801_361152001_4FGL_J1156.6+0640_daily_bin469.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) = 5851.94144733
delta logL = -6.45392883598e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5851.94138327
delta logL = -4.82516043121e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6113       1.0000          .0000       10.000    
     3 'Normalizat'    1.1374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92821       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=   5851.941     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10580E-03    20.514        .18142E-01** at limit **
   2  Index         2.5079        8.0388        .50000        .71298E-05
   3  Normalizat    1.1374        .32245E-02    .27681E-03    .18797E-03
   4  Prefactor     .92820        .27998E-02    .26167E-03   -.68428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105804
  Index      = 2.50789
  Normalizat = 1.13742
  Prefactor  = 0.928195
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.941     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10580E-03    183.91        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5079        8.6027        .50000       -.52178    
   3  Normalizat    1.1374        .96889E-02    .55363E-04   -.88559    
   4  Prefactor     .92820        .84128E-02    .10467E-04   -.95163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.7319e-10
Minuit parameter uncertainties:
  1  0.0655449
  2  370.752
  3  0.00968896
  4  0.00841277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188114': 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) = 5851.94138309
delta logL = -2.97796759696e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.058e-04  6.554e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.508e+00  3.708e+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:  9.282e-01  8.413e-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.137e+00  9.689e-03  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/188114/cmap_HighResolution_360892801_361152001_4FGL_J1156.6+0640_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-04 17:21:24.048053', job_id='188114', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630801284.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-2.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='469' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 188114: <4FGL_J1156.6+0640_daily_bin469> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin469> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:34 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06: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:06:35 2021
Terminated at Sat Sep  4 17:21:24 2021
Results reported at Sat Sep  4 17:21:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin469 179.164 6.6728 360892801 361152001 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

