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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin630
RA = 179.164, Dec = 6.6728
tmin = 402624001, tmax = 402883201
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='189578', job_status='RUN', time_executed='2021-09-04 17:13:44.602253', time_epoch_executed='1630800824.6' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189578

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189578/ft1_4FGL_J1156.6+0640_daily_bin630.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189578/ft2_4FGL_J1156.6+0640_daily_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189578/ft1_4FGL_J1156.6+0640_daily_bin630.fits outfile=/scratch/kocevski/189578/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin630.fits ra=179.164 dec=6.6728 rad=12.0 tmin=402624001.0 tmax=402883201.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.59
user 3.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189578/ft1_filtered_4FGL_J1156.6+0640_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/189578/ft2_4FGL_J1156.6+0640_daily_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/189578/ltcube_402624001_402883201_4FGL_J1156.6+0640_daily_bin630.fits outfile=/scratch/kocevski/189578/expmap_402624001_402883201_4FGL_J1156.6+0640_daily_bin630.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/189578/ltcube_402624001_402883201_4FGL_J1156.6+0640_daily_bin630.fits
.....................!
real 190.15
user 185.56
sys 4.20

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/189578/ft1_filtered_4FGL_J1156.6+0640_daily_bin630.fits scfile=/scratch/kocevski/189578/ft2_4FGL_J1156.6+0640_daily_bin630.fits outfile=/scratch/kocevski/189578/cmap_402624001_402883201_4FGL_J1156.6+0640_daily_bin630.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189578/ft1_filtered_4FGL_J1156.6+0640_daily_bin630.fits scfile=/scratch/kocevski/189578/ft2_4FGL_J1156.6+0640_daily_bin630.fits outfile=/scratch/kocevski/189578/cmap_HighResolution_402624001_402883201_4FGL_J1156.6+0640_daily_bin630.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.550       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8042       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3255       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    36.922       1.0000         .10000E-03   10000.    
    20 'Prefactor '    90.216       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1947       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.6153       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93889       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1175       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=   6471.671     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3033 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.755        13.790        .19751E-06    .16300E-04
   2  Prefactor     41.555        44.101       -.36314E-06    .68697E-05
   3  Prefactor     .10000E-03    1.1740       -.13028E-06** at limit **
   4  Prefactor     .10000E-03    12.134        .46113E-07** at limit **
   5  Prefactor     33.307        100.94       -.58492E-05   -.29274E-05
   6  Prefactor     .10000E-03    4.0468        .23917E-06** at limit **
   7  Prefactor     .10000E-03    2.0972        .30231E-08** at limit **
   8  Prefactor     .10000E-03    14.982        .39418E-06** at limit **
   9  Prefactor     .10000E-03    25.956       -.22196E-06** at limit **
  10  Prefactor     .10000E-03    9.5612        .19698E-06** at limit **
  11  Prefactor     .10000E-03    19.013       -.47110E-06** at limit **
  12  Prefactor     3.3975        5.7923        .47081E-05   -.12263E-03
  13  Prefactor     5.0279        4.1526       -.12387E-05    .10956E-04
  14  Prefactor     .10000E-03    27.757        .91146E-06** at limit **
  15  Prefactor     .10000E-03    5.0532       -.22637E-07** at limit **
  16  norm          2.8040        2.3251       -.47669E-08    .35098E-04
  17  norm          4.3259        3.8055       -.41396E-06   -.18522E-03
  18  Prefactor     .10000E-03    10.509       -.40553E-06** at limit **
  19  norm          36.910        40.413        .17214E-05    .25149E-04
  20  Prefactor     90.190        152.14        .35985E-05    .10388E-04
  21  norm          2.1949        .69521        .46389E-07    .90111E-03
  22  Prefactor     .10000E-03    3.3166       -.43767E-07** at limit **
  23  Prefactor     .10000E-03    20.362       -.73808E-06** at limit **
  24  norm          9.6153        2.4300        .17225E-07    .13948E-03
  25  Normalizat    .93866        .20479       -.26950E-05   -.37222E-04
  26  Prefactor     1.1177        .17117        .17703E-05    .11272E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.7552
  Prefactor  = 41.5549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3975
  Prefactor  = 5.02794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.80403
  norm       = 4.32595
  Prefactor  = 0.0001
  norm       = 36.9102
  Prefactor  = 90.1904
  norm       = 2.19487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.61534
  Normalizat = 0.938656
  Prefactor  = 1.11769
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.671     FROM HESSE     STATUS=OK           446 CALLS     3479 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.755        13.789        .10091E-03   -1.4914    
   2  Prefactor     41.555        44.163        .62189E-04   -1.4418    
   3  Prefactor     .10000E-03    1.2094        .17013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.307        100.84        .69472E-04   -1.4553    
   6  Prefactor     .10000E-03    4.0585        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0993        .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3975        5.8260        .10967E-02   -1.5339    
  13  Prefactor     5.0279        4.1635        .13000E-03   -1.5259    
  14  Prefactor     .10000E-03    27.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0692        .17655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8040        2.3300        .10778E-03   -1.5373    
  17  norm          4.3259        3.8055        .13211E-03   -1.5292    
  18  Prefactor     .10000E-03    10.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          36.910        40.468        .65957E-04   -1.4492    
  20  Prefactor     90.190        152.22        .42305E-04   -1.3806    
  21  norm          2.1949        .69400        .34762E-04   -1.5412    
  22  Prefactor     .10000E-03    3.3214        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.6153        2.4296        .60279E-04   -1.5088    
  25  Normalizat    .93866        .24116        .30356E-03   -.95115    
  26  Prefactor     1.1177        .20372        .24422E-03   -.88903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78199e-10
Minuit parameter uncertainties:
  1  13.7922
  2  44.1982
  3  7.53881e-06
  4  1.43305e-05
  5  101.362
  6  3.07741e-05
  7  1.85675e-06
  8  4.13946e-05
  9  2.68407e-06
  10  2.73447e-05
  11  3.87745e-05
  12  5.82697
  13  4.16375
  14  8.57428e-05
  15  5.22661e-06
  16  2.33009
  17  3.80575
  18  2.77056e-05
  19  40.4978
  20  152.885
  21  0.693998
  22  3.90343e-06
  23  3.09781e-05
  24  2.42962
  25  0.241441
  26  0.203867
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.387e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189578/likelihoodResults_402624001_402883201_4FGL_J1156.6+0640_daily_bin630.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) = 6471.667519
delta logL = 0.00314347169569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6471.66669486
delta logL = 0.00396760952754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.287       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4321       1.0000          .0000       10.000    
     3 'Normalizat'    .93710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1186       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=   6471.667     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      263 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.281        113.83        .74033E-04    .44533E-05
   2  Index         2.4320        1.4261        .11292E-01    .11727E-04
   3  Normalizat    .93717        .23270        .30378E-03   -.21844E-03
   4  Prefactor     1.1186        .20183        .24414E-03   -.23903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.2813
  Index      = 2.43196
  Normalizat = 0.937171
  Prefactor  = 1.11856
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.667     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.281        102.33        .29613E-05   -1.4625    
   2  Index         2.4320        1.2864        .45168E-03   -.53938    
   3  Normalizat    .93717        .23300        .12151E-04   -.95166    
   4  Prefactor     1.1186        .20194        .48828E-04   -.88876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93834e-11
Minuit parameter uncertainties:
  1  102.949
  2  1.30648
  3  0.233253
  4  0.202082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189578': 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) = 6471.66669473
delta logL = 0.00396773752163

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.928e+01  1.029e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.432e+00  1.306e+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.119e+00  2.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.372e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/189578/cmap_HighResolution_402624001_402883201_4FGL_J1156.6+0640_daily_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-04 17:26:26.445043', job_id='189578', GAL2='1.12', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630801586.45', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.97e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='630' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 189578: <4FGL_J1156.6+0640_daily_bin630> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin630 179.164 6.6728 402624001 402883201 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 :                                   762.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

