/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 199 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin110
RA = 179.164, Dec = 6.6728
tmin = 267840001, tmax = 268099201
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='186551', job_status='RUN', time_executed='2021-09-04 17:04:52.321737', time_epoch_executed='1630800292.32' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186551

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186551/ft1_4FGL_J1156.6+0640_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186551/ft2_4FGL_J1156.6+0640_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186551/ft1_4FGL_J1156.6+0640_daily_bin110.fits outfile=/scratch/kocevski/186551/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin110.fits ra=179.164 dec=6.6728 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.45
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186551/ft1_filtered_4FGL_J1156.6+0640_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/186551/ft2_4FGL_J1156.6+0640_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/186551/ltcube_267840001_268099201_4FGL_J1156.6+0640_daily_bin110.fits outfile=/scratch/kocevski/186551/expmap_267840001_268099201_4FGL_J1156.6+0640_daily_bin110.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/186551/ltcube_267840001_268099201_4FGL_J1156.6+0640_daily_bin110.fits
.....................!
real 190.90
user 186.47
sys 4.04

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/186551/ft1_filtered_4FGL_J1156.6+0640_daily_bin110.fits scfile=/scratch/kocevski/186551/ft2_4FGL_J1156.6+0640_daily_bin110.fits outfile=/scratch/kocevski/186551/cmap_267840001_268099201_4FGL_J1156.6+0640_daily_bin110.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186551/ft1_filtered_4FGL_J1156.6+0640_daily_bin110.fits scfile=/scratch/kocevski/186551/ft2_4FGL_J1156.6+0640_daily_bin110.fits outfile=/scratch/kocevski/186551/cmap_HighResolution_267840001_268099201_4FGL_J1156.6+0640_daily_bin110.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.54
user 0.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6117       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    70.434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43250E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.498       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7555       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0640       1.0000         .10000E-03   10000.    
    16 'norm      '    .99159E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9232       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2899       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .82112       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1163       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2245       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=   6328.939     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3094 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9096        .17498E-07** at limit **
   2  Prefactor     .10000E-03    25.048       -.42176E-06** at limit **
   3  Prefactor     5.6113        3.1270       -.43106E-08   -.26045E-03
   4  Prefactor     .10000E-03    10.469        .20897E-05** at limit **
   5  Prefactor     70.465        69.714        .29146E-04    .71709E-04
   6  Prefactor     .14970E-03    5.9972       -.32191E-05** at limit **
   7  Prefactor     .10000E-03    2.3109       -.18103E-07** at limit **
   8  Prefactor     .10000E-03    17.101       -.46243E-05** at limit **
   9  Prefactor     .10000E-03    32.241       -.49499E-05** at limit **
  10  Prefactor     10.480        22.896       -.14410E-06   -.19224E-05
  11  Prefactor     .10000E-03    19.433        .67509E-05** at limit **
  12  Prefactor     5.7551        4.9332       -.13272E-06   -.18187E-03
  13  Prefactor     .10000E-03    1.0789        .10345E-07** at limit **
  14  Prefactor     .10000E-03    6.6792        .34725E-07** at limit **
  15  Prefactor     5.0876        10.136        .49485E-06   -.14787E-03
  16  norm          .10011E-03    1.4265       -.29297E-07** at limit **
  17  norm          1.9233        2.5403       -.15235E-06   -.55982E-03
  18  Prefactor     .10000E-03    10.176       -.18824E-05** at limit **
  19  norm          .10000E-03    26.133       -.30898E-05** at limit **
  20  Prefactor     .10000E-03    35.191        .49911E-05** at limit **
  21  norm          1.2900        .56126        .20679E-07   -.23397E-03
  22  Prefactor     11.066        10.094        .18157E-06    .31819E-06
  23  Prefactor     .10000E-03    24.584        .10327E-05** at limit **
  24  norm          .82050        1.3955       -.20120E-06   -.11270E-02
  25  Normalizat    1.1165        .20715       -.15334E-05    .35654E-03
  26  Prefactor     1.2245        .18141        .42298E-06    .25397E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61129
  Prefactor  = 0.0001
  Prefactor  = 70.4653
  Prefactor  = 0.000149699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4795
  Prefactor  = 0.0001
  Prefactor  = 5.75515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08761
  norm       = 0.000100112
  norm       = 1.92326
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29002
  Prefactor  = 11.0664
  Prefactor  = 0.0001
  norm       = 0.820501
  Normalizat = 1.11647
  Prefactor  = 1.22447
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.939     FROM HESSE     STATUS=OK           466 CALLS     3560 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6113        3.1299        .99475E-04   -1.5234    
   4  Prefactor     .10000E-03    10.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     70.465        69.651        .23916E-03   -1.4027    
   6  Prefactor     .14970E-03    12.472        .62244E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3137        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.480        22.895        .12366E-03   -1.5060    
  11  Prefactor     .10000E-03    19.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7551        4.9356        .15740E-03   -1.5228    
  13  Prefactor     .10000E-03    1.0820        .80655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0876        10.732        .17868E-03   -1.5257    
  16  norm          .10011E-03    4.3690        .29274E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9233        2.5176        .13799E-03   -1.5431    
  18  Prefactor     .10000E-03    10.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    26.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2900        .55297        .36603E-04   -1.5481    
  22  Prefactor     11.066        10.095        .12039E-03   -1.5043    
  23  Prefactor     .10000E-03    24.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .82050        1.3567        .11715E-03   -1.5527    
  25  Normalizat    1.1165        .24801        .28430E-03   -.89225    
  26  Prefactor     1.2245        .21852        .24501E-03   -.85582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15517e-09
Minuit parameter uncertainties:
  1  4.66838e-06
  2  1.40928e-05
  3  3.12996
  4  1.63235e-06
  5  69.7322
  6  0.0498045
  7  2.83631e-06
  8  4.93464e-05
  9  1.29934e-05
  10  22.9142
  11  1.41145e-05
  12  4.93597
  13  1.46552e-06
  14  6.4287e-07
  15  10.7361
  16  0.00140035
  17  2.51772
  18  2.22621e-06
  19  1.70665e-05
  20  2.87088e-06
  21  0.552972
  22  10.0966
  23  8.17392e-06
  24  1.35671
  25  0.248268
  26  0.218678
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  7.047e+01  6.973e+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.224e+00  2.187e-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.116e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.52
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 9.19e-06 +/- 9.09e-06

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

Saving results to:
/scratch/kocevski/186551/likelihoodResults_267840001_268099201_4FGL_J1156.6+0640_daily_bin110.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) = 6328.49148553
delta logL = 0.447376855279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6328.47674788
delta logL = 0.462114498293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.920       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5310       1.0000          .0000       10.000    
     3 'Normalizat'    1.1375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2145       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=   6328.477     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      238 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.925        72.789        .50846E-05   -.42498E-03
   2  Index         1.5312        .49027       -.68439E-05   -.29008E-03
   3  Normalizat    1.1381        .20036        .29014E-06    .10258E-03
   4  Prefactor     1.2138        .18015       -.13775E-06    .13533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.9247
  Index      = 1.5312
  Normalizat = 1.13814
  Prefactor  = 1.21376
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.477     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.925        96.562        .43593E-04   -1.3862    
   2  Index         1.5312        .75901        .11747E-01   -.76670    
   3  Normalizat    1.1381        .24025        .28186E-03   -.88537    
   4  Prefactor     1.2138        .21630        .24588E-03   -.85909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17814e-09
Minuit parameter uncertainties:
  1  96.7414
  2  0.764746
  3  0.240486
  4  0.216463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186551': 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) = 6328.4767426
delta logL = 0.462119786336

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  8.492e+01  9.674e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  1.531e+00  7.647e-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.214e+00  2.165e-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.138e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.44
Ra Dec: 179.164 6.673
Photon Index (Free Index): 1.53 +/- 0.76
Photon Flux (Free Index): 9.03e-09 +/- 1.42e-08
Energy Flux (Free Index): 2.57e-05 +/- 4.50e-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/186551/cmap_HighResolution_267840001_268099201_4FGL_J1156.6+0640_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='2.57e-05', photon_flux_error='2.47e-08', dlogl='4.62e-01', energy_flux='9.19e-06', photon_flux2='9.03e-09', job_status='DONE', time_completed='2021-09-04 17:17:44.422090', photon_index_error2='0.76', photon_index2='1.53', ts='2.52', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='9.15e-08', energy_flux_error2='4.50e-05', EG='1.12', time_epoch_completed='1630801064.42', return_code='0', job_id='186551', GAL2='1.21', EG2='1.14', return_code2='0', energy_flux_error='9.09e-06', photon_flux_error2='1.42e-08', ts2='3.44', photon_index='2.32' WHERE bin_id='110' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:17:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 186551: <4FGL_J1156.6+0640_daily_bin110> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin110> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:22 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:23 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:01:23 2021
Terminated at Sat Sep  4 17:17:45 2021
Results reported at Sat Sep  4 17:17:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin110 179.164 6.6728 267840001 268099201 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 :                                   770.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

