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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin740
RA = 179.164, Dec = 6.6728
tmin = 431136001, tmax = 431395201
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='189750', job_status='RUN', time_executed='2021-09-04 17:14:01.916665', time_epoch_executed='1630800841.92' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189750/ft1_4FGL_J1156.6+0640_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189750/ft2_4FGL_J1156.6+0640_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189750/ft1_4FGL_J1156.6+0640_daily_bin740.fits outfile=/scratch/kocevski/189750/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin740.fits ra=179.164 dec=6.6728 rad=12.0 tmin=431136001.0 tmax=431395201.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.60
user 5.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189750/ft2_4FGL_J1156.6+0640_daily_bin740.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/189750/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/189750/ft1_filtered_4FGL_J1156.6+0640_daily_bin740.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.50
user 0.37
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189750/ft1_filtered_4FGL_J1156.6+0640_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/189750/ft2_4FGL_J1156.6+0640_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/189750/ltcube_431136001_431395201_4FGL_J1156.6+0640_daily_bin740.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/189750/ft2_4FGL_J1156.6+0640_daily_bin740.fits
.....................!
real 12.27
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189750/ft1_filtered_4FGL_J1156.6+0640_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/189750/ft2_4FGL_J1156.6+0640_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/189750/ltcube_431136001_431395201_4FGL_J1156.6+0640_daily_bin740.fits outfile=/scratch/kocevski/189750/expmap_431136001_431395201_4FGL_J1156.6+0640_daily_bin740.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/189750/ltcube_431136001_431395201_4FGL_J1156.6+0640_daily_bin740.fits
.....................!
real 190.37
user 185.49
sys 4.51

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/189750/ft1_filtered_4FGL_J1156.6+0640_daily_bin740.fits scfile=/scratch/kocevski/189750/ft2_4FGL_J1156.6+0640_daily_bin740.fits outfile=/scratch/kocevski/189750/cmap_431136001_431395201_4FGL_J1156.6+0640_daily_bin740.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/189750/ft1_filtered_4FGL_J1156.6+0640_daily_bin740.fits scfile=/scratch/kocevski/189750/ft2_4FGL_J1156.6+0640_daily_bin740.fits outfile=/scratch/kocevski/189750/cmap_HighResolution_431136001_431395201_4FGL_J1156.6+0640_daily_bin740.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    83.291       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7724       1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.653       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6377       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1629       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2833       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25752E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8228       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9064       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    113.25       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5026       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.814       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .76634       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4747       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66948       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=   5350.919     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     3112 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9553        14.828        .69003E-06   -.31582E-05
   2  Prefactor     83.278        56.535        .11516E-06   -.25537E-04
   3  Prefactor     2.2608        2.0088        .12046E-06   -.13938E-04
   4  Prefactor     9.7721        19.025        .19152E-05   -.21360E-04
   5  Prefactor     67.569        117.05        .53681E-06   -.40771E-04
   6  Prefactor     .10000E-03    5.2904       -.29706E-06** at limit **
   7  Prefactor     8.6381        9.3323       -.24616E-07   -.21544E-04
   8  Prefactor     .10000E-03    6.9288        .12757E-07** at limit **
   9  Prefactor     .10000E-03    35.748       -.51414E-07** at limit **
  10  Prefactor     38.685        45.609        .14099E-05   -.81849E-04
  11  Prefactor     5.1480        37.310        .17128E-05   -.14890E-04
  12  Prefactor     5.2824        6.1729        .51808E-05   -.19563E-03
  13  Prefactor     .10000E-03    2.0236       -.78873E-06** at limit **
  14  Prefactor     .10000E-03    66.414        .60411E-05** at limit **
  15  Prefactor     .10000E-03    6.4025       -.41281E-07** at limit **
  16  norm          1.8224        1.8320       -.41713E-07   -.20771E-04
  17  norm          3.9135        6.5979       -.22772E-05   -.23340E-03
  18  Prefactor     .10000E-03    10.928        .16762E-06** at limit **
  19  norm          113.00        90.568        .21833E-05   -.22252E-03
  20  Prefactor     .10000E-03    60.978        .33429E-06** at limit **
  21  norm          3.5008        .97986        .30350E-06   -.10931E-02
  22  Prefactor     11.814        8.9633        .29959E-07   -.11341E-04
  23  Prefactor     .10000E-03    8.1656        .32714E-07** at limit **
  24  norm          .76624        1.2846        .12886E-05    .23848E-02
  25  Normalizat    1.4750        .23498       -.83852E-06   -.36636E-04
  26  Prefactor     .66921        .18550       -.12525E-05   -.40419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.95532
  Prefactor  = 83.2784
  Prefactor  = 2.26078
  Prefactor  = 9.7721
  Prefactor  = 67.5694
  Prefactor  = 0.0001
  Prefactor  = 8.63814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.6845
  Prefactor  = 5.14805
  Prefactor  = 5.28239
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.82239
  norm       = 3.91352
  Prefactor  = 0.0001
  norm       = 113.002
  Prefactor  = 0.0001
  norm       = 3.50083
  Prefactor  = 11.8137
  Prefactor  = 0.0001
  norm       = 0.766244
  Normalizat = 1.47501
  Prefactor  = 0.669208
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.919     FROM HESSE     STATUS=OK           460 CALLS     3572 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9553        14.801        .18066E-03   -1.5263    
   2  Prefactor     83.278        56.843        .44013E-04   -1.3880    
   3  Prefactor     2.2608        2.0000        .94100E-04   -1.5407    
   4  Prefactor     9.7721        19.001        .64094E-03   -1.5083    
   5  Prefactor     67.569        117.54        .24399E-03   -1.4062    
   6  Prefactor     .10000E-03    5.3172        .16429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.6381        9.3145        .13639E-03   -1.5120    
   8  Prefactor     .10000E-03    6.9355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.685        45.696        .64406E-04   -1.4463    
  11  Prefactor     5.1480        37.275        .17693E-03   -1.5254    
  12  Prefactor     5.2824        6.0348        .87431E-03   -1.5248    
  13  Prefactor     .10000E-03    2.0646        .10205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.250        .21453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4303        .18065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8224        1.8331        .95738E-04   -1.5438    
  17  norm          3.9135        6.5150        .17578E-03   -1.5312    
  18  Prefactor     .10000E-03    10.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          113.00        89.786        .18901E-03   -1.3578    
  20  Prefactor     .10000E-03    60.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5008        .96994        .33103E-04   -1.5334    
  22  Prefactor     11.814        8.9636        .11655E-03   -1.5020    
  23  Prefactor     .10000E-03    8.1668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .76624        1.1188        .10935E-02   -1.5533    
  25  Normalizat    1.4750        .28084        .25450E-03   -.78483    
  26  Prefactor     .66921        .21805        .30335E-03   -1.0475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52514e-09
Minuit parameter uncertainties:
  1  14.8117
  2  56.8801
  3  2.00003
  4  19.0128
  5  117.952
  6  5.62651e-06
  7  9.31605
  8  3.02373e-07
  9  3.44319e-05
  10  45.7374
  11  27.7291
  12  6.03552
  13  5.88839e-05
  14  0.000375587
  15  3.06183e-06
  16  1.83311
  17  6.51619
  18  4.21896e-06
  19  89.8943
  20  0.000125978
  21  0.969949
  22  8.96464
  23  4.62523e-06
  24  1.11886
  25  0.281141
  26  0.218325
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.757e+01  1.180e+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:  6.692e-01  2.183e-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.475e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189750/likelihoodResults_431136001_431395201_4FGL_J1156.6+0640_daily_bin740.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) = 5350.70898902
delta logL = 0.209520809897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5350.70178426
delta logL = 0.216725563611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.732       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9843       1.0000          .0000       10.000    
     3 'Normalizat'    1.4448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68482       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=   5350.702     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      312 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.681        110.77        .67998E-04   -.21474E-03
   2  Index         2.9853        1.4894        .69604E-02   -.11333E-03
   3  Normalizat    1.4451        .26342        .25663E-03   -.22150E-05
   4  Prefactor     .68443        .21692        .30023E-03    .23375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.6815
  Index      = 2.98526
  Normalizat = 1.44509
  Prefactor  = 0.684427
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.702     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.681        79.096        .13600E-04   -1.4529    
   2  Index         2.9853        1.0683        .27841E-03   -.41474    
   3  Normalizat    1.4451        .26338        .10265E-04   -.79333    
   4  Prefactor     .68443        .21668        .12009E-04   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04612e-10
Minuit parameter uncertainties:
  1  79.3365
  2  1.07824
  3  0.263627
  4  0.216945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189750': 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) = 5350.70178166
delta logL = 0.216728166523

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  3.468e+01  7.934e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.985e+00  1.078e+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:  6.844e-01  2.169e-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.445e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
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/189750/cmap_HighResolution_431136001_431395201_4FGL_J1156.6+0640_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-04 17:26:17.290168', job_id='189750', GAL2='0.68', fit_tolerance='1e-08', EG2='1.45', EG='1.48', time_epoch_completed='1630801577.29', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.17e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='740' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 189750: <4FGL_J1156.6+0640_daily_bin740> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin740 179.164 6.6728 431136001 431395201 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 :                                   733.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

