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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin611
RA = 179.164, Dec = 6.6728
tmin = 397699201, tmax = 397958401
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='189548', job_status='RUN', time_executed='2021-09-04 17:14:17.412484', time_epoch_executed='1630800857.41' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189548

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189548/ft1_4FGL_J1156.6+0640_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189548/ft2_4FGL_J1156.6+0640_daily_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189548/ft1_4FGL_J1156.6+0640_daily_bin611.fits outfile=/scratch/kocevski/189548/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin611.fits ra=179.164 dec=6.6728 rad=12.0 tmin=397699201.0 tmax=397958401.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.61
user 3.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189548/ft2_4FGL_J1156.6+0640_daily_bin611.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/189548/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin611.fits evtable="EVENTS" outfile="/scratch/kocevski/189548/ft1_filtered_4FGL_J1156.6+0640_daily_bin611.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/189548/ft1_filtered_4FGL_J1156.6+0640_daily_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/189548/ft2_4FGL_J1156.6+0640_daily_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/189548/ltcube_397699201_397958401_4FGL_J1156.6+0640_daily_bin611.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/189548/ft2_4FGL_J1156.6+0640_daily_bin611.fits
.....................!
real 12.10
user 11.41
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189548/ft1_filtered_4FGL_J1156.6+0640_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/189548/ft2_4FGL_J1156.6+0640_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/189548/ltcube_397699201_397958401_4FGL_J1156.6+0640_daily_bin611.fits outfile=/scratch/kocevski/189548/expmap_397699201_397958401_4FGL_J1156.6+0640_daily_bin611.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/189548/ltcube_397699201_397958401_4FGL_J1156.6+0640_daily_bin611.fits
.....................!
real 192.23
user 187.24
sys 4.63

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/189548/ft1_filtered_4FGL_J1156.6+0640_daily_bin611.fits scfile=/scratch/kocevski/189548/ft2_4FGL_J1156.6+0640_daily_bin611.fits outfile=/scratch/kocevski/189548/cmap_397699201_397958401_4FGL_J1156.6+0640_daily_bin611.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189548/ft1_filtered_4FGL_J1156.6+0640_daily_bin611.fits scfile=/scratch/kocevski/189548/ft2_4FGL_J1156.6+0640_daily_bin611.fits outfile=/scratch/kocevski/189548/cmap_HighResolution_397699201_397958401_4FGL_J1156.6+0640_daily_bin611.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.437       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5353       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.067       1.0000         .10000E-03   10000.    
     9 'Prefactor '    89.623       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11641E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0809       1.0000         .10000E-03   10000.    
    16 'norm      '    .18533E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .76949       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.336       1.0000         .10000E-03   10000.    
    24 'norm      '    2.6441       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98566       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=   5999.388     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3136 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.436        14.721       -.49375E-07   -.63989E-04
   2  Prefactor     .10000E-03    20.214       -.15271E-05** at limit **
   3  Prefactor     3.5356        3.1558        .15000E-06   -.27083E-05
   4  Prefactor     25.447        28.389       -.19466E-06   -.42687E-04
   5  Prefactor     .10000E-03    104.75       -.33069E-05** at limit **
   6  Prefactor     .10000E-03    4.2603       -.12870E-07** at limit **
   7  Prefactor     1.8551        10.816        .15160E-05   -.15033E-04
   8  Prefactor     25.062        26.916        .66558E-06   -.66968E-04
   9  Prefactor     89.609        101.03       -.31684E-05   -.10275E-03
  10  Prefactor     .10000E-03    19.542        .11682E-05** at limit **
  11  Prefactor     .10000E-03    19.297        .19043E-05** at limit **
  12  Prefactor     .73794        2.2903        .85529E-06    .28795E-03
  13  Prefactor     .10000E-03    1.6519       -.18835E-06** at limit **
  14  Prefactor     29.336        29.668       -.21692E-06   -.57602E-04
  15  Prefactor     4.1253        12.373       -.41572E-06   -.26370E-03
  16  norm          .10001E-03    2.7823        .17570E-05** at limit **
  17  norm          .10000E-03    1.0517        .12372E-08** at limit **
  18  Prefactor     .10000E-03    13.335        .70088E-06** at limit **
  19  norm          .10000E-03    14.426       -.12789E-05** at limit **
  20  Prefactor     .10000E-03    50.695        .33893E-05** at limit **
  21  norm          .76945        .58468        .28221E-07   -.77654E-03
  22  Prefactor     .10000E-03    5.7978        .69869E-08** at limit **
  23  Prefactor     26.337        24.423        .93398E-07   -.12905E-04
  24  norm          2.6441        1.7038        .28007E-07   -.85532E-04
  25  Normalizat    1.3026        .21924       -.45437E-06   -.32068E-03
  26  Prefactor     .98562        .18599       -.66861E-06   -.31874E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.4362
  Prefactor  = 0.0001
  Prefactor  = 3.53557
  Prefactor  = 25.447
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.8551
  Prefactor  = 25.0621
  Prefactor  = 89.6092
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.737944
  Prefactor  = 0.0001
  Prefactor  = 29.3356
  Prefactor  = 4.12527
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.769447
  Prefactor  = 0.0001
  Prefactor  = 26.3374
  norm       = 2.64413
  Normalizat = 1.30262
  Prefactor  = 0.985618
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.388     FROM HESSE     STATUS=OK           458 CALLS     3594 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.436        14.731        .75129E-04   -1.4641    
   2  Prefactor     .10000E-03    20.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5356        3.1557        .12321E-03   -1.5332    
   4  Prefactor     25.447        28.344        .79410E-04   -1.4699    
   5  Prefactor     .10000E-03    105.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2801        .15611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8551        10.865        .30574E-03   -1.5436    
   8  Prefactor     25.062        26.958        .80009E-04   -1.4706    
   9  Prefactor     89.609        101.92        .42444E-04   -1.3812    
  10  Prefactor     .10000E-03    19.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .73794        2.1953        .20260E-02   -1.5536    
  13  Prefactor     .10000E-03    2.9092        .19105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.336        29.672        .73967E-04   -1.4624    
  15  Prefactor     4.1253        12.394        .19958E-03   -1.5302    
  16  norm          .10001E-03    3.9285        .19952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0657        .77497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    51.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .76945        .56793        .47806E-04   -1.5533    
  22  Prefactor     .10000E-03    5.8181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.337        24.410        .78062E-04   -1.4681    
  24  norm          2.6441        1.6965        .77364E-04   -1.5383    
  25  Normalizat    1.3026        .25802        .27184E-03   -.83488    
  26  Prefactor     .98562        .21805        .26543E-03   -.93210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96378e-09
Minuit parameter uncertainties:
  1  14.7333
  2  0.00019841
  3  3.15587
  4  28.3591
  5  0.000980589
  6  4.79066e-06
  7  8.98125
  8  26.9707
  9  102.122
  10  0.000157194
  11  0.00022184
  12  2.19555
  13  2.96148e-07
  14  29.687
  15  12.4017
  16  0.000282113
  17  6.13456e-07
  18  8.24415e-05
  19  0.000145685
  20  0.000744214
  21  0.567939
  22  3.73741e-06
  23  24.4194
  24  1.69657
  25  0.258276
  26  0.218243
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  9.806e-04  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.856e-01  2.182e-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.303e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189548/likelihoodResults_397699201_397958401_4FGL_J1156.6+0640_daily_bin611.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5999.38842362
delta logL = -4.50911820735e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5999.38842362
delta logL = -4.50837533208e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96336E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3183       1.0000          .0000       10.000    
     3 'Normalizat'    1.3026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98562       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.

 FCN=   5999.388     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      202 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6336.6        .90715E-02** at limit **
   2  Index         2.3142        7.1264        .50000        .32160E-06
   3  Normalizat    1.3026        .21025        .61461E-01    .19420E-04
   4  Prefactor     .98562        .18245        .46087E-01    .29508E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31415
  Normalizat = 1.30262
  Prefactor  = 0.985619
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.388     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.43        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3142        6.1454        .50000       -.56708    
   3  Normalizat    1.3026        .24670        .27184E-03   -.83488    
   4  Prefactor     .98562        .21424        .26543E-03   -.93210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93877e-12
Minuit parameter uncertainties:
  1  0.000215995
  2  4.64111
  3  0.246927
  4  0.214429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189548': 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) = 5999.38837853
delta logL = 4.01087163482e-10

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.160e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.314e+00  4.641e+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.856e-01  2.144e-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.303e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.164 6.673

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/189548/cmap_HighResolution_397699201_397958401_4FGL_J1156.6+0640_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-09-04 17:26:43.761301', job_id='189548', GAL2='0.99', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630801603.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.01e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='611' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 189548: <4FGL_J1156.6+0640_daily_bin611> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin611 179.164 6.6728 397699201 397958401 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 :                                   745.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

