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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin906
RA = 179.164, Dec = 6.6728
tmin = 474163201, tmax = 474422401
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='191274', job_status='RUN', time_executed='2021-09-04 17:16:43.488162', time_epoch_executed='1630801003.49' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191274/ft1_4FGL_J1156.6+0640_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191274/ft2_4FGL_J1156.6+0640_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191274/ft1_4FGL_J1156.6+0640_daily_bin906.fits outfile=/scratch/kocevski/191274/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin906.fits ra=179.164 dec=6.6728 rad=12.0 tmin=474163201.0 tmax=474422401.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.49
user 5.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191274/ft2_4FGL_J1156.6+0640_daily_bin906.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/191274/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/191274/ft1_filtered_4FGL_J1156.6+0640_daily_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191274/ft1_filtered_4FGL_J1156.6+0640_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/191274/ft2_4FGL_J1156.6+0640_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/191274/ltcube_474163201_474422401_4FGL_J1156.6+0640_daily_bin906.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/191274/ft2_4FGL_J1156.6+0640_daily_bin906.fits
.....................!
real 12.37
user 12.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191274/ft1_filtered_4FGL_J1156.6+0640_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/191274/ft2_4FGL_J1156.6+0640_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/191274/ltcube_474163201_474422401_4FGL_J1156.6+0640_daily_bin906.fits outfile=/scratch/kocevski/191274/expmap_474163201_474422401_4FGL_J1156.6+0640_daily_bin906.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/191274/ltcube_474163201_474422401_4FGL_J1156.6+0640_daily_bin906.fits
.....................!
real 190.36
user 185.51
sys 4.38

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191274/ft1_filtered_4FGL_J1156.6+0640_daily_bin906.fits scfile=/scratch/kocevski/191274/ft2_4FGL_J1156.6+0640_daily_bin906.fits outfile=/scratch/kocevski/191274/cmap_HighResolution_474163201_474422401_4FGL_J1156.6+0640_daily_bin906.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    58.167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.999       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2388       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.927       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22714E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.961       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3354       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.077       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.681       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.835       1.0000         .10000E-03   10000.    
    19 'norm      '    33.632       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.194       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2959       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      '    .17160       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.6377       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2166.285     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     2834 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          58.171        1.1730        .28047E-07    .60565E-04
   2  Prefactor     .10001E-03    18.810       -.21394E-04** at limit **
   3  Prefactor     9.3359        3.4418        .49470E-06    .72101E-02
   4  Prefactor     .10000E-03    19.495        .15668E-04** at limit **
   5  Prefactor     51.995        1.3079       -.30995E-06    .16837E-02
   6  Prefactor     3.2183        2.9798        .31754E-05   -.14607E-02
   7  Prefactor     12.930        1.1606       -.52427E-06    .59766E-03
   8  Prefactor     .10000E-03    16.250       -.29244E-05** at limit **
   9  Prefactor     .10004E-03    188.55       -.19899E-04** at limit **
  10  Prefactor     .10017E-03    26.410        .18513E-04** at limit **
  11  Prefactor     24.959        1.1229       -.31958E-06    .72730E-03
  12  Prefactor     .10000E-03    3.8832        .40464E-06** at limit **
  13  Prefactor     6.3353        5.2089       -.45117E-05   -.20946E-02
  14  Prefactor     11.544        1.5657       -.81209E-06    .79603E-03
  15  Prefactor     31.079        1.0506       -.90895E-07    .21736E-03
  16  norm          .10000E-03    3.6525       -.11815E-05** at limit **
  17  norm          12.681        1.1010        .66538E-07   -.10761E-02
  18  Prefactor     24.836        1.0073        .24609E-07   -.76187E-04
  19  norm          33.628        1.3012       -.38897E-06    .13265E-02
  20  Prefactor     55.202        1.9290        .62742E-06   -.37396E-02
  21  norm          5.2959        1.4411       -.31589E-07   -.23908E-03
  22  Prefactor     .10000E-03    5.6324        .16092E-05** at limit **
  23  Prefactor     .10026E-03    14.883       -.90524E-05** at limit **
  24  norm          .17214        5.0462        .13366E-04    .10336E-02
  25  Normalizat    .10000E-01    1.5087       -.91151E-05** at limit **
  26  Prefactor     1.6378        .17780       -.59685E-07    .27635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 58.1712
  Prefactor  = 0.000100007
  Prefactor  = 9.33595
  Prefactor  = 0.000100003
  Prefactor  = 51.9947
  Prefactor  = 3.21829
  Prefactor  = 12.9304
  Prefactor  = 0.000100001
  Prefactor  = 0.000100037
  Prefactor  = 0.000100172
  Prefactor  = 24.9591
  Prefactor  = 0.0001
  Prefactor  = 6.33531
  Prefactor  = 11.5436
  Prefactor  = 31.0788
  norm       = 0.0001
  norm       = 12.6812
  Prefactor  = 24.8361
  norm       = 33.6279
  Prefactor  = 55.2019
  norm       = 5.29594
  Prefactor  = 0.0001
  Prefactor  = 0.000100263
  norm       = 0.172136
  Normalizat = 0.01
  Prefactor  = 1.63777
 **********
 **   18 **HESSE 
 **********

 FCN=   2166.285     FROM HESSE     STATUS=OK           520 CALLS     3354 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          58.171        32.009        .13151E-02   -1.4181    
   2  Prefactor     .10001E-03    25.082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3359        6.7405        .32794E-02   -1.5097    
   4  Prefactor     .10000E-03    21.457        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.995        163.66        .13904E-02   -1.4265    
   6  Prefactor     3.2183        40.598        .56267E-02   -1.5349    
   7  Prefactor     12.930        20.460        .27852E-02   -1.4989    
   8  Prefactor     .10000E-03    16.283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    191.32        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10017E-03    35.936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.959        49.356        .20045E-02   -1.4708    
  12  Prefactor     .10000E-03    3.8751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3353        5.3310        .39867E-02   -1.5205    
  14  Prefactor     11.544        46.808        .29469E-02   -1.5028    
  15  Prefactor     31.079        27.994        .17968E-02   -1.4592    
  16  norm          .10000E-03    3.6376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.681        8.7598        .28122E-02   -1.4996    
  18  Prefactor     24.836        37.716        .20095E-02   -1.4711    
  19  norm          33.628        91.363        .17274E-02   -1.4548    
  20  Prefactor     55.202        179.57        .13498E-02   -1.4221    
  21  norm          5.2959        1.5277        .43663E-02   -1.5248    
  22  Prefactor     .10000E-03    5.6313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10026E-03    32.144        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .17214        2.6745        .25388E-01   -1.5625    
  25  Normalizat    .10000E-01    .52545        .23266       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.6378        .26619        .47451E-01   -.73751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13916e-06
Minuit parameter uncertainties:
  1  32.018
  2  0.000845844
  3  6.74104
  4  0.000480904
  5  165.104
  6  22.8798
  7  20.4714
  8  0.000277733
  9  0.00535333
  10  0.00497046
  11  49.4364
  12  1.25368e-05
  13  5.3314
  14  46.5535
  15  28.0063
  16  2.44501e-05
  17  8.76068
  18  37.7524
  19  91.747
  20  181.376
  21  1.52772
  22  4.25082e-05
  23  0.00581835
  24  1.35671
  25  1.29574e-06
  26  0.266422
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  5.199e+01  1.651e+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.638e+00  2.664e-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.000e-02  1.296e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191274/likelihoodResults_474163201_474422401_4FGL_J1156.6+0640_daily_bin906.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) = 2166.23837624
delta logL = 0.046364952881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2166.202902
delta logL = 0.081839190671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.218       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0948       1.0000          .0000       10.000    
     3 'Normalizat'    .10023E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6319       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=   2166.203     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      291 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.204        640.23        .91364E-04   -.32853E-03
   2  Index         3.0953        6.5463        .74024E-02   -.14621E-03
   3  Normalizat    .10000E-01    1.0245        .13193E-01** at limit **
   4  Prefactor     1.6321        .17479        .20984E-03   -.40891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2043
  Index      = 3.09529
  Normalizat = 0.01
  Prefactor  = 1.63212
 **********
 **   18 **HESSE 
 **********

 FCN=   2166.203     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.204        108.37        .18273E-04   -1.4831    
   2  Index         3.0953        2.0839        .29610E-03   -.39082    
   3  Normalizat    .10000E-01    1.0275        .26387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6321        .17337        .41968E-04   -.73904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21173e-09
Minuit parameter uncertainties:
  1  91.495
  2  2.1618
  3  1.08341e-05
  4  0.173429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191274': 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) = 2166.20289002
delta logL = 0.0818511690904

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.920e+01  9.149e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  3.095e+00  2.162e+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.632e+00  1.734e-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.000e-02  1.083e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/191274/cmap_HighResolution_474163201_474422401_4FGL_J1156.6+0640_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2021-09-04 17:24:47.241143', job_id='191274', GAL2='1.63', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630801487.24', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.64', dlogl='8.19e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='906' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:24:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 191274: <4FGL_J1156.6+0640_daily_bin906> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin906 179.164 6.6728 474163201 474422401 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 :                                   482.00 sec.
    Max Memory :                                 1206 MB
    Average Memory :                             373.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            503 sec.

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

