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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin756
RA = 179.164, Dec = 6.6728
tmin = 435283201, tmax = 435542401
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='189774', job_status='RUN', time_executed='2021-09-04 17:15:09.747774', time_epoch_executed='1630800909.75' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189774/ft1_4FGL_J1156.6+0640_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189774/ft2_4FGL_J1156.6+0640_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189774/ft1_4FGL_J1156.6+0640_daily_bin756.fits outfile=/scratch/kocevski/189774/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin756.fits ra=179.164 dec=6.6728 rad=12.0 tmin=435283201.0 tmax=435542401.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 5.14
user 4.90
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189774/ft1_filtered_4FGL_J1156.6+0640_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/189774/ft2_4FGL_J1156.6+0640_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/189774/ltcube_435283201_435542401_4FGL_J1156.6+0640_daily_bin756.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/189774/ft2_4FGL_J1156.6+0640_daily_bin756.fits
.....................!
real 11.93
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189774/ft1_filtered_4FGL_J1156.6+0640_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/189774/ft2_4FGL_J1156.6+0640_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/189774/ltcube_435283201_435542401_4FGL_J1156.6+0640_daily_bin756.fits outfile=/scratch/kocevski/189774/expmap_435283201_435542401_4FGL_J1156.6+0640_daily_bin756.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/189774/ltcube_435283201_435542401_4FGL_J1156.6+0640_daily_bin756.fits
.....................!
real 189.86
user 185.47
sys 4.03

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/189774/ft1_filtered_4FGL_J1156.6+0640_daily_bin756.fits scfile=/scratch/kocevski/189774/ft2_4FGL_J1156.6+0640_daily_bin756.fits outfile=/scratch/kocevski/189774/cmap_435283201_435542401_4FGL_J1156.6+0640_daily_bin756.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189774/ft1_filtered_4FGL_J1156.6+0640_daily_bin756.fits scfile=/scratch/kocevski/189774/ft2_4FGL_J1156.6+0640_daily_bin756.fits outfile=/scratch/kocevski/189774/cmap_HighResolution_435283201_435542401_4FGL_J1156.6+0640_daily_bin756.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7971       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1638       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24658E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6509       1.0000         .10000E-03   10000.    
    17 'norm      '    4.8917       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10989E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .68750       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.994       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.7002       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1250       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2101       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=   5602.906     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3068 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7943        10.025        .42209E-05   -.88545E-04
   2  Prefactor     .10000E-03    58.941        .54189E-06** at limit **
   3  Prefactor     2.0910        1.9008        .11422E-06    .14042E-04
   4  Prefactor     .10000E-03    12.668        .87907E-06** at limit **
   5  Prefactor     59.874        131.02        .60523E-05    .98082E-04
   6  Prefactor     .10016E-03    13.907       -.22726E-06** at limit **
   7  Prefactor     .10000E-03    2.8143        .87340E-07** at limit **
   8  Prefactor     8.1758        17.607       -.12260E-05    .72550E-05
   9  Prefactor     .10000E-03    76.908        .13184E-05** at limit **
  10  Prefactor     .10000E-03    13.532       -.75409E-07** at limit **
  11  Prefactor     14.302        20.963        .55432E-06   -.12033E-04
  12  Prefactor     .10001E-03    4.5289       -.20742E-06** at limit **
  13  Prefactor     .10000E-03    2.4621       -.33193E-07** at limit **
  14  Prefactor     .10000E-03    19.015        .87278E-06** at limit **
  15  Prefactor     .10000E-03    4.1266       -.19547E-07** at limit **
  16  norm          1.6509        1.7659        .24047E-07    .84063E-05
  17  norm          4.8913        4.2881        .27405E-06   -.50136E-04
  18  Prefactor     .10000E-03    13.637       -.58549E-06** at limit **
  19  norm          .10000E-03    83.580       -.30940E-06** at limit **
  20  Prefactor     .10000E-03    53.672       -.47748E-06** at limit **
  21  norm          .68743        .60603        .80203E-07    .12623E-03
  22  Prefactor     16.992        11.408        .97069E-07    .11035E-05
  23  Prefactor     .10000E-03    23.346       -.70729E-06** at limit **
  24  norm          4.7002        2.1541        .59839E-07   -.55688E-04
  25  Normalizat    1.1249        .23409       -.46239E-05    .13136E-03
  26  Prefactor     1.2103        .18947        .15687E-05   -.15958E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.79431
  Prefactor  = 0.0001
  Prefactor  = 2.09102
  Prefactor  = 0.0001
  Prefactor  = 59.8736
  Prefactor  = 0.000100158
  Prefactor  = 0.0001
  Prefactor  = 8.17582
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.3018
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65089
  norm       = 4.8913
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.687429
  Prefactor  = 16.9918
  Prefactor  = 0.0001
  norm       = 4.70016
  Normalizat = 1.1249
  Prefactor  = 1.21027
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.906     FROM HESSE     STATUS=OK           458 CALLS     3526 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7943        10.083        .83404E-03   -1.5226    
   2  Prefactor     .10000E-03    59.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0910        1.9088        .95004E-04   -1.5419    
   4  Prefactor     .10000E-03    12.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.874        133.33        .25950E-03   -1.4159    
   6  Prefactor     .10016E-03    89.097        .51293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8190        .12264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1758        17.522        .14032E-03   -1.5136    
   9  Prefactor     .10000E-03    77.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.302        20.945        .10585E-03   -1.4951    
  12  Prefactor     .10001E-03    11.195        .30658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4973        .11455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1324        .14847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6509        1.7671        .99715E-04   -1.5451    
  17  norm          4.8913        4.2350        .12999E-03   -1.5266    
  18  Prefactor     .10000E-03    13.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    84.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .68743        .57904        .48969E-03   -1.5542    
  22  Prefactor     16.992        11.409        .97157E-04   -1.4883    
  23  Prefactor     .10000E-03    23.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7002        2.1465        .70838E-04   -1.5274    
  25  Normalizat    1.1249        .26308        .28811E-03   -.88956    
  26  Prefactor     1.2103        .22028        .24532E-03   -.86016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06251e-09
Minuit parameter uncertainties:
  1  10.0858
  2  0.000264618
  3  1.90889
  4  9.36245e-05
  5  134.004
  6  0.00751467
  7  3.11692e-06
  8  17.5329
  9  0.000438595
  10  3.79876e-05
  11  20.9553
  12  0.000618698
  13  1.23854e-05
  14  9.40159e-05
  15  4.27168e-06
  16  1.76715
  17  4.23524
  18  4.88443e-05
  19  9.34741e-05
  20  8.43823e-05
  21  0.579046
  22  11.4105
  23  5.11226e-05
  24  2.14657
  25  0.263386
  26  0.220451
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.210e+00  2.205e-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.125e+00  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189774/likelihoodResults_435283201_435542401_4FGL_J1156.6+0640_daily_bin756.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) = 5602.44445583
delta logL = 0.461301886905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5602.42567454
delta logL = 0.480083181086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.845       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4091       1.0000          .0000       10.000    
     3 'Normalizat'    1.0663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2413       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=   5602.426     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      331 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.869        890.67        .92262E-04    .20948E-05
   2  Index         3.4090        6.6981        .55143E-02    .25732E-04
   3  Normalizat    1.0655        .24944        .29506E-03   -.13100E-04
   4  Prefactor     1.2419        .21998        .24262E-03    .16166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8686
  Index      = 3.409
  Normalizat = 1.06554
  Prefactor  = 1.24187
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.426     FROM HESSE     STATUS=OK            25 CALLS      356 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.869        57.284        .36905E-05   -1.4839    
   2  Index         3.4090        1.3417        .22057E-03   -.32383    
   3  Normalizat    1.0655        .26037        .11802E-04   -.90866    
   4  Prefactor     1.2419        .22329        .97049E-05   -.85052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68818e-12
Minuit parameter uncertainties:
  1  57.4521
  2  1.36026
  3  0.260681
  4  0.223456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189774': 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) = 5602.4256703
delta logL = 0.480087418076

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.242e+00  2.235e-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.066e+00  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 179.164 6.673
Photon Index (Free Index): 3.41 +/- 1.36
Photon Flux (Free Index): 6.60e-08 +/- 6.96e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.20e-05

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/189774/cmap_HighResolution_435283201_435542401_4FGL_J1156.6+0640_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='4.80e-01', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-09-04 17:27:24.421639', photon_index_error2='1.36', photon_index2='3.41', ts='0.23', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.20e-05', EG='1.12', time_epoch_completed='1630801644.42', return_code='0', job_id='189774', GAL2='1.24', EG2='1.07', return_code2='0', photon_flux_error2='6.96e-08', ts2='1.27', photon_index='2.32' WHERE bin_id='756' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:27:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 189774: <4FGL_J1156.6+0640_daily_bin756> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin756> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:31 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:33 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:11:33 2021
Terminated at Sat Sep  4 17:27:25 2021
Results reported at Sat Sep  4 17:27:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin756 179.164 6.6728 435283201 435542401 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            954 sec.

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

