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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin999
RA = 179.164, Dec = 6.6728
tmin = 498268801, tmax = 498528001
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='191430', job_status='RUN', time_executed='2021-09-04 17:20:42.106737', time_epoch_executed='1630801242.11' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191430

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191430/ft1_4FGL_J1156.6+0640_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191430/ft2_4FGL_J1156.6+0640_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191430/ft1_4FGL_J1156.6+0640_daily_bin999.fits outfile=/scratch/kocevski/191430/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin999.fits ra=179.164 dec=6.6728 rad=12.0 tmin=498268801.0 tmax=498528001.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.79
user 4.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191430/ft1_filtered_4FGL_J1156.6+0640_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/191430/ft2_4FGL_J1156.6+0640_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/191430/ltcube_498268801_498528001_4FGL_J1156.6+0640_daily_bin999.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/191430/ft2_4FGL_J1156.6+0640_daily_bin999.fits
.....................!
real 12.64
user 12.12
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191430/ft1_filtered_4FGL_J1156.6+0640_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/191430/ft2_4FGL_J1156.6+0640_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/191430/ltcube_498268801_498528001_4FGL_J1156.6+0640_daily_bin999.fits outfile=/scratch/kocevski/191430/expmap_498268801_498528001_4FGL_J1156.6+0640_daily_bin999.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/191430/ltcube_498268801_498528001_4FGL_J1156.6+0640_daily_bin999.fits
.....................!
real 191.21
user 185.05
sys 5.50

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/191430/ft1_filtered_4FGL_J1156.6+0640_daily_bin999.fits scfile=/scratch/kocevski/191430/ft2_4FGL_J1156.6+0640_daily_bin999.fits outfile=/scratch/kocevski/191430/cmap_498268801_498528001_4FGL_J1156.6+0640_daily_bin999.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191430/ft1_filtered_4FGL_J1156.6+0640_daily_bin999.fits scfile=/scratch/kocevski/191430/ft2_4FGL_J1156.6+0640_daily_bin999.fits outfile=/scratch/kocevski/191430/cmap_HighResolution_498268801_498528001_4FGL_J1156.6+0640_daily_bin999.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.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2088       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9981       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.701       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3973       1.0000         .10000E-03   10000.    
    16 'norm      '    .12580E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.0740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3514       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26674       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.963       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95299       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1131       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=   4345.839     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3213 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2085        11.628       -.26359E-05    .68628E-04
   2  Prefactor     .10000E-03    63.987        .66748E-06** at limit **
   3  Prefactor     4.9978        3.5754       -.98864E-07    .22370E-04
   4  Prefactor     .10000E-03    14.257        .53263E-07** at limit **
   5  Prefactor     55.613        87.370        .21972E-06    .78346E-04
   6  Prefactor     .10000E-03    4.0946        .23624E-06** at limit **
   7  Prefactor     .10000E-03    5.6423        .22365E-06** at limit **
   8  Prefactor     .10000E-03    10.654       -.87670E-07** at limit **
   9  Prefactor     .10000E-03    25.432        .32125E-06** at limit **
  10  Prefactor     .10000E-03    32.702        .51793E-06** at limit **
  11  Prefactor     .10000E-03    10.116        .11445E-06** at limit **
  12  Prefactor     .10000E-03    2.9738       -.15533E-06** at limit **
  13  Prefactor     .10000E-03    1.1724       -.67164E-07** at limit **
  14  Prefactor     .10000E-03    99.600       -.12892E-05** at limit **
  15  Prefactor     7.4268        17.658       -.52772E-05    .43586E-04
  16  norm          .10000E-03    2.5346        .17440E-05** at limit **
  17  norm          8.0738        5.6072       -.79445E-06    .21588E-03
  18  Prefactor     .10000E-03    18.613       -.17340E-06** at limit **
  19  norm          .10000E-03    31.749       -.92258E-08** at limit **
  20  Prefactor     .10000E-03    77.650       -.28921E-07** at limit **
  21  norm          3.3513        1.0156        .53984E-07    .14532E-03
  22  Prefactor     .16548        118.14       -.16517E-04    .21100E-04
  23  Prefactor     31.087        36.633        .36503E-05    .87241E-04
  24  norm          .10000E-03    .66301       -.63292E-08** at limit **
  25  Normalizat    .95292        .23735        .41267E-06    .11983E-03
  26  Prefactor     1.1132        .20677        .36094E-06    .15506E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.20845
  Prefactor  = 0.000100001
  Prefactor  = 4.99777
  Prefactor  = 0.0001
  Prefactor  = 55.613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.42676
  norm       = 0.000100001
  norm       = 8.07382
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.35125
  Prefactor  = 0.165477
  Prefactor  = 31.087
  norm       = 0.0001
  Normalizat = 0.952924
  Prefactor  = 1.1132
 **********
 **   18 **HESSE 
 **********

 FCN=   4345.839     FROM HESSE     STATUS=OK           452 CALLS     3665 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2085        11.609        .69965E-03   -1.5135    
   2  Prefactor     .10000E-03    64.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9978        3.5733        .10083E-03   -1.5261    
   4  Prefactor     .10000E-03    14.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.613        87.681        .26874E-03   -1.4215    
   6  Prefactor     .10000E-03    4.1098        .13026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6712        .15292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0298        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1938        .69707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    100.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4268        18.381        .14746E-03   -1.5163    
  16  norm          .10000E-03    7.4048        .18686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.0738        5.6072        .11458E-03   -1.5140    
  18  Prefactor     .10000E-03    18.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    31.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    77.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3513        1.0181        .31729E-04   -1.5342    
  22  Prefactor     .16548        124.38        .38490E-02   -1.5627    
  23  Prefactor     31.087        37.349        .72006E-04   -1.4592    
  24  norm          .10000E-03    1.0071        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95292        .27801        .28571E-03   -.94625    
  26  Prefactor     1.1132        .24285        .23783E-03   -.89046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21738e-10
Minuit parameter uncertainties:
  1  11.6124
  2  0.000499436
  3  3.57346
  4  1.18106e-05
  5  87.8851
  6  5.25278e-06
  7  7.59531e-07
  8  2.24117e-05
  9  0.000148756
  10  0.000117263
  11  6.80721e-06
  12  6.2612e-06
  13  1.63067e-06
  14  0.000218086
  15  18.395
  16  0.000172044
  17  5.60753
  18  4.61985e-05
  19  2.71305e-05
  20  3.00387e-05
  21  1.0181
  22  9.08974
  23  37.377
  24  9.42595e-06
  25  0.278428
  26  0.243091
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  5.561e+01  8.789e+01  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.113e+00  2.431e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.529e-01  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191430/likelihoodResults_498268801_498528001_4FGL_J1156.6+0640_daily_bin999.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) = 4345.78983294
delta logL = 0.0488205041902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4345.78749575
delta logL = 0.0511576927411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.698       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0504       1.0000          .0000       10.000    
     3 'Normalizat'    .95622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1103       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=   4345.787     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      296 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.705        139.96        .44437E-04   -.37762E-04
   2  Index         2.0504        .80709        .92145E-02   -.12651E-04
   3  Normalizat    .95627        .26943        .28523E-03    .27103E-05
   4  Prefactor     1.1103        .24150        .23807E-03   -.15663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.7052
  Index      = 2.05036
  Normalizat = 0.956269
  Prefactor  = 1.1103
 **********
 **   18 **HESSE 
 **********

 FCN=   4345.787     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.705        135.36        .88874E-05   -1.3898    
   2  Index         2.0504        .78091        .36858E-03   -.63097    
   3  Normalizat    .95627        .26967        .11409E-04   -.94510    
   4  Prefactor     1.1103        .24171        .95227E-05   -.89138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91473e-11
Minuit parameter uncertainties:
  1  135.875
  2  0.785866
  3  0.270054
  4  0.241951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191430': 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) = 4345.78749573
delta logL = 0.0511577146663

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  8.171e+01  1.359e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.050e+00  7.859e-01  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.110e+00  2.420e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.563e-01  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/191430/cmap_HighResolution_498268801_498528001_4FGL_J1156.6+0640_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 17:31:37.639690', job_id='191430', GAL2='1.11', fit_tolerance='1e-08', EG2='0.96', EG='0.95', time_epoch_completed='1630801897.64', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.12e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='999' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:31:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 191430: <4FGL_J1156.6+0640_daily_bin999> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin999 179.164 6.6728 498268801 498528001 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 :                                   653.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

