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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin634
RA = 179.164, Dec = 6.6728
tmin = 403660801, tmax = 403920001
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='189584', job_status='RUN', time_executed='2021-09-04 17:13:53.123859', time_epoch_executed='1630800833.12' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189584/ft1_4FGL_J1156.6+0640_daily_bin634.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189584/ft2_4FGL_J1156.6+0640_daily_bin634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189584/ft1_4FGL_J1156.6+0640_daily_bin634.fits outfile=/scratch/kocevski/189584/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin634.fits ra=179.164 dec=6.6728 rad=12.0 tmin=403660801.0 tmax=403920001.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 7.67
user 7.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189584/ft1_filtered_4FGL_J1156.6+0640_daily_bin634.fits" evtable="EVENTS" scfile=/scratch/kocevski/189584/ft2_4FGL_J1156.6+0640_daily_bin634.fits sctable="SC_DATA" outfile=/scratch/kocevski/189584/ltcube_403660801_403920001_4FGL_J1156.6+0640_daily_bin634.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/189584/ft2_4FGL_J1156.6+0640_daily_bin634.fits
.....................!
real 11.43
user 11.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189584/ft1_filtered_4FGL_J1156.6+0640_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/189584/ft2_4FGL_J1156.6+0640_daily_bin634.fits sctable="SC_DATA" expcube=/scratch/kocevski/189584/ltcube_403660801_403920001_4FGL_J1156.6+0640_daily_bin634.fits outfile=/scratch/kocevski/189584/expmap_403660801_403920001_4FGL_J1156.6+0640_daily_bin634.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/189584/ltcube_403660801_403920001_4FGL_J1156.6+0640_daily_bin634.fits
.....................!
real 191.28
user 187.00
sys 3.91

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/189584/ft1_filtered_4FGL_J1156.6+0640_daily_bin634.fits scfile=/scratch/kocevski/189584/ft2_4FGL_J1156.6+0640_daily_bin634.fits outfile=/scratch/kocevski/189584/cmap_403660801_403920001_4FGL_J1156.6+0640_daily_bin634.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189584/ft1_filtered_4FGL_J1156.6+0640_daily_bin634.fits scfile=/scratch/kocevski/189584/ft2_4FGL_J1156.6+0640_daily_bin634.fits outfile=/scratch/kocevski/189584/cmap_HighResolution_403660801_403920001_4FGL_J1156.6+0640_daily_bin634.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9078       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.381       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0861       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8396       1.0000         .10000E-03   10000.    
    17 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.370       1.0000         .10000E-03   10000.    
    19 'norm      '    8.4195       1.0000         .10000E-03   10000.    
    20 'Prefactor '    109.04       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4869       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11359E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.800       1.0000         .10000E-03   10000.    
    24 'norm      '    6.2865       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1466       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93564       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=   4679.971     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3118 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3960        .20275E-07** at limit **
   2  Prefactor     75.164        47.979        .81703E-06    .44093E-05
   3  Prefactor     .10001E-03    1.0956        .34292E-06** at limit **
   4  Prefactor     6.9078        26.205        .12082E-05   -.21253E-04
   5  Prefactor     12.298        137.68        .22499E-05    .34150E-04
   6  Prefactor     .10001E-03    23.544       -.43237E-05** at limit **
   7  Prefactor     .10000E-03    2.5228        .10417E-07** at limit **
   8  Prefactor     40.426        32.170       -.45032E-05    .88239E-03
   9  Prefactor     3.6132        1275.2        .89877E-05    .17047E-04
  10  Prefactor     .10000E-03    13.434        .14204E-06** at limit **
  11  Prefactor     .10000E-03    8.4790        .15734E-07** at limit **
  12  Prefactor     .10000E-03    3.8757        .33884E-06** at limit **
  13  Prefactor     5.7258        5.4781        .25160E-06   -.90816E-04
  14  Prefactor     .10000E-03    18.393        .18476E-06** at limit **
  15  Prefactor     .10000E-03    8.5978        .49211E-07** at limit **
  16  norm          1.8400        2.3083        .13767E-06   -.11747E-04
  17  norm          .10000E-03    2.7817        .32700E-06** at limit **
  18  Prefactor     15.298        51.263       -.25043E-05    .20288E-04
  19  norm          8.4132        49.259        .54355E-06    .23049E-05
  20  Prefactor     108.81        194.65        .37849E-06   -.40373E-04
  21  norm          2.4868        .82361        .52079E-07   -.28321E-03
  22  Prefactor     .10001E-03    14.267        .98573E-05** at limit **
  23  Prefactor     18.784        33.893       -.17509E-04   -.32988E-03
  24  norm          6.2864        2.5922        .61095E-07   -.15902E-03
  25  Normalizat    1.1468        .23748       -.40716E-05    .76636E-04
  26  Prefactor     .93552        .19670        .75141E-06   -.23539E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 75.1635
  Prefactor  = 0.000100005
  Prefactor  = 6.90777
  Prefactor  = 12.2982
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 40.4258
  Prefactor  = 3.61321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.72582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.83995
  norm       = 0.0001
  Prefactor  = 15.2984
  norm       = 8.41317
  Prefactor  = 108.809
  norm       = 2.48684
  Prefactor  = 0.000100005
  Prefactor  = 18.7836
  norm       = 6.28637
  Normalizat = 1.14684
  Prefactor  = 0.935515
 **********
 **   18 **HESSE 
 **********

 FCN=   4679.971     FROM HESSE     STATUS=OK           454 CALLS     3572 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4105        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     75.164        48.116        .46308E-04   -1.3972    
   3  Prefactor     .10001E-03    8.6327        .13873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9078        26.218        .15265E-03   -1.5182    
   5  Prefactor     12.298        136.74        .11495E-03   -1.5006    
   6  Prefactor     .10001E-03    23.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5252        .10611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.426        31.748        .63079E-04   -1.4435    
   9  Prefactor     3.6132        1389.0        .19945E-02   -1.5328    
  10  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8967        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7258        5.4638        .14885E-03   -1.5229    
  14  Prefactor     .10000E-03    18.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8400        2.2882        .11241E-03   -1.5437    
  17  norm          .10000E-03    2.8257        .22170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.298        51.070        .10216E-03   -1.4926    
  19  norm          8.4132        49.332        .13816E-03   -1.5128    
  20  Prefactor     108.81        194.31        .19259E-03   -1.3618    
  21  norm          2.4868        .82839        .32399E-04   -1.5393    
  22  Prefactor     .10001E-03    91.258        .45154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.784        34.232        .92372E-04   -1.4841    
  24  norm          6.2864        2.5924        .67510E-04   -1.5206    
  25  Normalizat    1.1468        .27761        .27357E-03   -.88262    
  26  Prefactor     .93552        .22983        .25713E-03   -.94911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66047e-09
Minuit parameter uncertainties:
  1  8.74235e-06
  2  48.1411
  3  0.000420522
  4  26.262
  5  82.2558
  6  0.000960649
  7  4.10896e-06
  8  31.7616
  9  145.219
  10  1.09539e-05
  11  1.35202e-05
  12  1.50278e-05
  13  5.46424
  14  1.46128e-05
  15  6.61368e-06
  16  2.28827
  17  3.09527e-06
  18  51.2165
  19  40.7957
  20  195.463
  21  0.828394
  22  0.00141662
  23  34.268
  24  2.59248
  25  0.277967
  26  0.230068
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.230e+01  8.226e+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:  9.355e-01  2.301e-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.147e+00  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189584/likelihoodResults_403660801_403920001_4FGL_J1156.6+0640_daily_bin634.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) = 4679.97051418
delta logL = 0.000840371613776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4679.97030597
delta logL = 0.00104857708448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.214       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2365       1.0000          .0000       10.000    
     3 'Normalizat'    1.1473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93544       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=   4679.970     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      280 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.292        172.69        .10624E-03    .86764E-04
   2  Index         2.2291        1.8705        .74563E-02    .18040E-03
   3  Normalizat    1.1470        .26262        .27356E-03    .11138E-04
   4  Prefactor     .93530        .22643        .25715E-03   -.13471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2916
  Index      = 2.22915
  Normalizat = 1.14702
  Prefactor  = 0.935305
 **********
 **   18 **HESSE 
 **********

 FCN=   4679.970     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.292        163.08        .21248E-04   -1.4952    
   2  Index         2.2291        1.8216        .29825E-03   -.58737    
   3  Normalizat    1.1470        .26289        .10942E-04   -.88256    
   4  Prefactor     .93530        .22664        .10286E-04   -.94918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02245e-09
Minuit parameter uncertainties:
  1  96.8869
  2  1.88544
  3  0.263189
  4  0.226868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189584': 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) = 4679.97029326
delta logL = 0.00106129340929

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.429e+01  9.689e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.229e+00  1.885e+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:  9.353e-01  2.269e-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.147e+00  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/189584/cmap_HighResolution_403660801_403920001_4FGL_J1156.6+0640_daily_bin634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-09-04 17:25:13.624505', job_id='189584', GAL2='0.94', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630801513.62', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.06e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='634' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:25:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 189584: <4FGL_J1156.6+0640_daily_bin634> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin634> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:16 2021
Job was executed on host(s) <bullet0249>, 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:25:14 2021
Results reported at Sat Sep  4 17:25:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin634 179.164 6.6728 403660801 403920001 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 :                                   679.28 sec.
    Max Memory :                                 1172 MB
    Average Memory :                             271.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

