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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin796
RA = 179.164, Dec = 6.6728
tmin = 445651201, tmax = 445910401
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='189838', job_status='RUN', time_executed='2021-09-04 17:14:10.899309', time_epoch_executed='1630800850.9' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='796'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189838/ft1_4FGL_J1156.6+0640_daily_bin796.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189838/ft2_4FGL_J1156.6+0640_daily_bin796.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189838/ft1_4FGL_J1156.6+0640_daily_bin796.fits outfile=/scratch/kocevski/189838/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin796.fits ra=179.164 dec=6.6728 rad=12.0 tmin=445651201.0 tmax=445910401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.49
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189838/ft1_filtered_4FGL_J1156.6+0640_daily_bin796.fits" evtable="EVENTS" scfile=/scratch/kocevski/189838/ft2_4FGL_J1156.6+0640_daily_bin796.fits sctable="SC_DATA" outfile=/scratch/kocevski/189838/ltcube_445651201_445910401_4FGL_J1156.6+0640_daily_bin796.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/189838/ft2_4FGL_J1156.6+0640_daily_bin796.fits
.....................!
real 14.80
user 14.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189838/ft1_filtered_4FGL_J1156.6+0640_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/189838/ft2_4FGL_J1156.6+0640_daily_bin796.fits sctable="SC_DATA" expcube=/scratch/kocevski/189838/ltcube_445651201_445910401_4FGL_J1156.6+0640_daily_bin796.fits outfile=/scratch/kocevski/189838/expmap_445651201_445910401_4FGL_J1156.6+0640_daily_bin796.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/189838/ltcube_445651201_445910401_4FGL_J1156.6+0640_daily_bin796.fits
.....................!
real 189.23
user 184.81
sys 4.06

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/189838/ft1_filtered_4FGL_J1156.6+0640_daily_bin796.fits scfile=/scratch/kocevski/189838/ft2_4FGL_J1156.6+0640_daily_bin796.fits outfile=/scratch/kocevski/189838/cmap_445651201_445910401_4FGL_J1156.6+0640_daily_bin796.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189838/ft1_filtered_4FGL_J1156.6+0640_daily_bin796.fits scfile=/scratch/kocevski/189838/ft2_4FGL_J1156.6+0640_daily_bin796.fits outfile=/scratch/kocevski/189838/cmap_HighResolution_445651201_445910401_4FGL_J1156.6+0640_daily_bin796.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5736       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32112E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.533       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52530E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.502       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35145E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .77032       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.939       1.0000         .10000E-03   10000.    
    19 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    141.32       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2599       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.3046       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0468       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1602       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=   6587.878     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3133 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5939        12.485       -.94202E-05   -.16431E-03
   2  Prefactor     .10000E-03    112.48        .23614E-04** at limit **
   3  Prefactor     3.8652        2.6411       -.43268E-06   -.31784E-03
   4  Prefactor     .10000E-03    8.0683       -.40942E-07** at limit **
   5  Prefactor     26.440        78.451       -.10932E-03   -.55655E-04
   6  Prefactor     1.4742        11.463       -.30871E-05   -.39738E-03
   7  Prefactor     .10000E-03    3.1712       -.24444E-07** at limit **
   8  Prefactor     .47653        11.298       -.69263E-06   -.75594E-04
   9  Prefactor     .10000E-03    44.019       -.93151E-07** at limit **
  10  Prefactor     .10110E-03    32.540        .94784E-05** at limit **
  11  Prefactor     20.514        17.024        .84823E-06   -.57515E-04
  12  Prefactor     .10000E-03    1.6644       -.58949E-07** at limit **
  13  Prefactor     .10000E-03    .67022       -.13051E-07** at limit **
  14  Prefactor     .10000E-03    25.961       -.66789E-06** at limit **
  15  Prefactor     .10000E-03    7.8064       -.99197E-07** at limit **
  16  norm          .76612        2.0984       -.11616E-05   -.15230E-02
  17  norm          5.7790        3.9202       -.59473E-07   -.87933E-03
  18  Prefactor     13.947        24.478       -.42827E-05   -.11701E-04
  19  norm          .10000E-03    67.622       -.31117E-05** at limit **
  20  Prefactor     141.30        188.91       -.17431E-04   -.32932E-05
  21  norm          .10000E-03    .15271       -.59231E-07** at limit **
  22  Prefactor     4.2605        6.6513       -.72163E-06   -.11657E-03
  23  Prefactor     .10000E-03    17.199       -.27798E-07** at limit **
  24  norm          3.3042        1.8088       -.12721E-06   -.11556E-03
  25  Normalizat    1.0470        .19644        .43647E-05   -.49725E-03
  26  Prefactor     1.1600        .16676        .21173E-05   -.32857E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.59392
  Prefactor  = 0.000100001
  Prefactor  = 3.86516
  Prefactor  = 0.0001
  Prefactor  = 26.4399
  Prefactor  = 1.47424
  Prefactor  = 0.0001
  Prefactor  = 0.476527
  Prefactor  = 0.0001
  Prefactor  = 0.000101098
  Prefactor  = 20.5139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.766124
  norm       = 5.77897
  Prefactor  = 13.9469
  norm       = 0.0001
  Prefactor  = 141.298
  norm       = 0.0001
  Prefactor  = 4.26046
  Prefactor  = 0.0001
  norm       = 3.30415
  Normalizat = 1.04701
  Prefactor  = 1.15997
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.878     FROM HESSE     STATUS=OK           464 CALLS     3597 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5939        12.506        .21378E-03   -1.5329    
   2  Prefactor     .10000E-03    113.91        .21361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8652        2.6405        .10360E-03   -1.5315    
   4  Prefactor     .10000E-03    8.0752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.440        78.293        .77772E-04   -1.4679    
   6  Prefactor     1.4742        11.461        .35406E-03   -1.5465    
   7  Prefactor     .10000E-03    3.1800        .14113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .47653        119.66        .51346E-02   -1.5570    
   9  Prefactor     .10000E-03    44.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10110E-03    34.275        .12848       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.514        16.969        .88458E-04   -1.4802    
  12  Prefactor     .10000E-03    1.6910        .10225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .67111        .64890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.348        .39593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .76612        1.8798        .17041E-03   -1.5533    
  17  norm          5.7790        3.8756        .11979E-03   -1.5227    
  18  Prefactor     13.947        24.464        .10728E-03   -1.4961    
  19  norm          .10000E-03    68.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     141.30        188.93        .33888E-04   -1.3325    
  21  norm          .10000E-03    .18758        .60687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2605        6.6441        .19522E-03   -1.5295    
  23  Prefactor     .10000E-03    17.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.3042        1.8019        .76988E-04   -1.5344    
  25  Normalizat    1.0470        .23268        .28277E-03   -.91472    
  26  Prefactor     1.1600        .19884        .23729E-03   -.87572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46531e-09
Minuit parameter uncertainties:
  1  12.5153
  2  0.000551968
  3  2.64059
  4  1.40131e-05
  5  78.5998
  6  8.22283
  7  4.2714e-06
  8  15.1316
  9  5.44535e-05
  10  0.0122789
  11  16.9734
  12  8.61349e-06
  13  1.40056e-06
  14  4.86758e-05
  15  4.09962e-06
  16  1.87998
  17  3.8758
  18  24.4818
  19  3.18809e-05
  20  189.744
  21  2.59266e-06
  22  6.64524
  23  3.70861e-05
  24  1.80193
  25  0.232908
  26  0.198969
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.644e+01  7.860e+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.160e+00  1.990e-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.047e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189838/likelihoodResults_445651201_445910401_4FGL_J1156.6+0640_daily_bin796.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) = 6587.86878322
delta logL = 0.00938313782353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6587.86661075
delta logL = 0.011555606141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.959       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5476       1.0000          .0000       10.000    
     3 'Normalizat'    1.0433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1619       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=   6587.867     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      262 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.969        82.875        .85476E-04    .10095E-03
   2  Index         2.5519        1.7356        .12942E-01    .80843E-04
   3  Normalizat    1.0435        .22357        .28320E-03    .72262E-03
   4  Prefactor     1.1617        .19540        .23714E-03    .72157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9692
  Index      = 2.55186
  Normalizat = 1.04347
  Prefactor  = 1.16173
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.867     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.969        73.543        .17095E-04   -1.4770    
   2  Index         2.5519        1.5471        .51769E-03   -.51166    
   3  Normalizat    1.0435        .22362        .56641E-04   -.91588    
   4  Prefactor     1.1617        .19541        .47427E-04   -.87517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41146e-10
Minuit parameter uncertainties:
  1  73.8489
  2  1.58156
  3  0.223825
  4  0.195529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189838': 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) = 6587.86660411
delta logL = 0.0115622513531

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.197e+01  7.385e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.552e+00  1.582e+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.162e+00  1.955e-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.043e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/189838/cmap_HighResolution_445651201_445910401_4FGL_J1156.6+0640_daily_bin796.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', job_status='DONE', photon_flux_upper_limit='8.73e-08', time_completed='2021-09-04 17:27:19.398483', job_id='189838', GAL2='1.16', fit_tolerance='1e-08', EG2='1.04', EG='1.05', time_epoch_completed='1630801639.4', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.16e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='796' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:27:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 189838: <4FGL_J1156.6+0640_daily_bin796> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin796 179.164 6.6728 445651201 445910401 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 :                                   788.00 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             296.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

