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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin945
RA = 179.164, Dec = 6.6728
tmin = 484272001, tmax = 484531201
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='191341', job_status='RUN', time_executed='2021-09-04 17:19:22.042059', time_epoch_executed='1630801162.04' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191341/ft1_4FGL_J1156.6+0640_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191341/ft2_4FGL_J1156.6+0640_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191341/ft1_4FGL_J1156.6+0640_daily_bin945.fits outfile=/scratch/kocevski/191341/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin945.fits ra=179.164 dec=6.6728 rad=12.0 tmin=484272001.0 tmax=484531201.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.12
user 4.86
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191341/ft2_4FGL_J1156.6+0640_daily_bin945.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/191341/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin945.fits evtable="EVENTS" outfile="/scratch/kocevski/191341/ft1_filtered_4FGL_J1156.6+0640_daily_bin945.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191341/ft1_filtered_4FGL_J1156.6+0640_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/191341/ft2_4FGL_J1156.6+0640_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/191341/ltcube_484272001_484531201_4FGL_J1156.6+0640_daily_bin945.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/191341/ft2_4FGL_J1156.6+0640_daily_bin945.fits
.....................!
real 11.63
user 11.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191341/ft1_filtered_4FGL_J1156.6+0640_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/191341/ft2_4FGL_J1156.6+0640_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/191341/ltcube_484272001_484531201_4FGL_J1156.6+0640_daily_bin945.fits outfile=/scratch/kocevski/191341/expmap_484272001_484531201_4FGL_J1156.6+0640_daily_bin945.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/191341/ltcube_484272001_484531201_4FGL_J1156.6+0640_daily_bin945.fits
.....................!
real 192.15
user 187.55
sys 4.00

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/191341/ft1_filtered_4FGL_J1156.6+0640_daily_bin945.fits scfile=/scratch/kocevski/191341/ft2_4FGL_J1156.6+0640_daily_bin945.fits outfile=/scratch/kocevski/191341/cmap_484272001_484531201_4FGL_J1156.6+0640_daily_bin945.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191341/ft1_filtered_4FGL_J1156.6+0640_daily_bin945.fits scfile=/scratch/kocevski/191341/ft2_4FGL_J1156.6+0640_daily_bin945.fits outfile=/scratch/kocevski/191341/cmap_HighResolution_484272001_484531201_4FGL_J1156.6+0640_daily_bin945.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12253E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1673       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    51.177       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0019       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38617E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.465       1.0000         .10000E-03   10000.    
    24 'norm      '    1.2518       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78506       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0182       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=   4308.394     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3142 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0069        11.101       -.60589E-06   -.41486E-04
   2  Prefactor     25.101        33.713        .48147E-05   -.91195E-05
   3  Prefactor     .39029        2.0252       -.16813E-06   -.49481E-03
   4  Prefactor     6.1356        39.144        .64166E-05   -.21540E-04
   5  Prefactor     .10000E-03    57.349       -.46109E-04** at limit **
   6  Prefactor     .10000E-03    3.6937       -.86222E-07** at limit **
   7  Prefactor     .10000E-03    3.0906        .31072E-07** at limit **
   8  Prefactor     .10000E-03    2.9266       -.84880E-07** at limit **
   9  Prefactor     .10000E-03    43.205        .76690E-06** at limit **
  10  Prefactor     .10001E-03    85.784        .54706E-04** at limit **
  11  Prefactor     40.271        32.044        .26369E-05    .75581E-04
  12  Prefactor     .10000E-03    1.9472       -.13377E-07** at limit **
  13  Prefactor     .10000E-03    .85248        .32674E-07** at limit **
  14  Prefactor     5.2616        55.891        .43982E-04    .21712E-04
  15  Prefactor     .10000E-03    31.628       -.77503E-05** at limit **
  16  norm          .10000E-03    1.8054       -.55819E-07** at limit **
  17  norm          1.5068        3.3465       -.72489E-05   -.17737E-02
  18  Prefactor     .10000E-03    22.407       -.93412E-07** at limit **
  19  norm          51.230        59.234        .42601E-04    .54121E-04
  20  Prefactor     .10000E-03    39.831        .22773E-04** at limit **
  21  norm          1.0018        .64119       -.79991E-06   -.42675E-03
  22  Prefactor     .10000E-03    8.0189        .67425E-06** at limit **
  23  Prefactor     24.534        26.403        .11705E-06   -.69787E-04
  24  norm          1.2517        1.2997        .14819E-07   -.43601E-03
  25  Normalizat    .78506        .20372        .11106E-05   -.16122E-03
  26  Prefactor     1.0182        .18269       -.52163E-05    .12423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.00686
  Prefactor  = 25.1014
  Prefactor  = 0.390291
  Prefactor  = 6.13557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 40.2708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26155
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.50684
  Prefactor  = 0.0001
  norm       = 51.2304
  Prefactor  = 0.0001
  norm       = 1.00185
  Prefactor  = 0.000100002
  Prefactor  = 24.5342
  norm       = 1.25174
  Normalizat = 0.785061
  Prefactor  = 1.01821
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.394     FROM HESSE     STATUS=OK           462 CALLS     3604 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0069        11.101        .13353E-03   -1.5108    
   2  Prefactor     25.101        33.701        .79968E-04   -1.4706    
   3  Prefactor     .39029        3.4041        .17540E-02   -1.5583    
   4  Prefactor     6.1356        39.089        .16205E-03   -1.5213    
   5  Prefactor     .10000E-03    57.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7027        .12319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0965        .11269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9269        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    86.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.271        31.980        .63161E-04   -1.4438    
  12  Prefactor     .10000E-03    2.0029        .17882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .85556        .59177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2616        54.787        .17685E-03   -1.5249    
  15  Prefactor     .10000E-03    32.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8311        .86015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5068        3.2958        .15238E-03   -1.5462    
  18  Prefactor     .10000E-03    22.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          51.230        59.459        .56061E-04   -1.4275    
  20  Prefactor     .10000E-03    39.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0018        .62641        .37382E-04   -1.5508    
  22  Prefactor     .10000E-03    9.2243        .59943E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.534        26.413        .80987E-04   -1.4717    
  24  norm          1.2517        1.2723        .73777E-04   -1.5484    
  25  Normalizat    .78506        .23252        .26254E-03   -1.0063    
  26  Prefactor     1.0182        .21065        .21338E-03   -.92125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08078e-09
Minuit parameter uncertainties:
  1  11.1039
  2  33.7268
  3  2.30516
  4  31.0024
  5  2.77946e-05
  6  3.5398e-06
  7  3.34418e-06
  8  1.34632e-06
  9  5.18789e-05
  10  0.00156147
  11  31.9939
  12  8.8029e-06
  13  2.16582e-06
  14  33.9964
  15  0.000153042
  16  7.8998e-06
  17  3.29619
  18  2.53434e-05
  19  59.5275
  20  2.47345e-05
  21  0.62641
  22  0.000265611
  23  26.4256
  24  1.27237
  25  0.232813
  26  0.21082
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.779e-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:  1.018e+00  2.108e-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:  7.851e-01  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/191341/likelihoodResults_484272001_484531201_4FGL_J1156.6+0640_daily_bin945.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) = 4308.3940909
delta logL = -8.32872874525e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4308.3940084
delta logL = -7.85247721069e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12382E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7586       1.0000          .0000       10.000    
     3 'Normalizat'    .78506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0182       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=   4308.394     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      269 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10541E-03    8.5968        .18142E-01** at limit **
   2  Index         2.6366        5.5719        .50000        .60221E-05
   3  Normalizat    .78507        .21900E-02    .26254E-03   -.76257E-04
   4  Prefactor     1.0182        .20148E-02    .21338E-03   -.10810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105405
  Index      = 2.63656
  Normalizat = 0.785065
  Prefactor  = 1.0182
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.394     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10541E-03    169.15        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6366        5.6200        .50000       -.49234    
   3  Normalizat    .78507        .97437E-02    .10501E-04   -1.0063    
   4  Prefactor     1.0182        .89640E-02    .42677E-04   -.92125    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3452e-09
Minuit parameter uncertainties:
  1  0.0606466
  2  527.385
  3  0.00974369
  4  0.00896403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191341': 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) = 4308.39400796
delta logL = -3.47796230926e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.054e-04  6.065e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.637e+00  5.274e+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:  1.018e+00  8.964e-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:  7.851e-01  9.744e-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/191341/cmap_HighResolution_484272001_484531201_4FGL_J1156.6+0640_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2021-09-04 17:29:57.099262', job_id='191341', GAL2='1.02', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630801797.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-3.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='945' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:29:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 191341: <4FGL_J1156.6+0640_daily_bin945> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin945> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:16:29 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:16:30 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:30 2021
Terminated at Sat Sep  4 17:29:58 2021
Results reported at Sat Sep  4 17:29:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin945 179.164 6.6728 484272001 484531201 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 :                                   633.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

