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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin946
RA = 179.164, Dec = 6.6728
tmin = 484531201, tmax = 484790401
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='191342', job_status='RUN', time_executed='2021-09-04 17:20:14.322979', time_epoch_executed='1630801214.32' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='946'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191342

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191342/ft1_4FGL_J1156.6+0640_daily_bin946.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191342/ft2_4FGL_J1156.6+0640_daily_bin946.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191342/ft1_4FGL_J1156.6+0640_daily_bin946.fits outfile=/scratch/kocevski/191342/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin946.fits ra=179.164 dec=6.6728 rad=12.0 tmin=484531201.0 tmax=484790401.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.07
user 6.76
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191342/ft2_4FGL_J1156.6+0640_daily_bin946.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/191342/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin946.fits evtable="EVENTS" outfile="/scratch/kocevski/191342/ft1_filtered_4FGL_J1156.6+0640_daily_bin946.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191342/ft1_filtered_4FGL_J1156.6+0640_daily_bin946.fits" evtable="EVENTS" scfile=/scratch/kocevski/191342/ft2_4FGL_J1156.6+0640_daily_bin946.fits sctable="SC_DATA" outfile=/scratch/kocevski/191342/ltcube_484531201_484790401_4FGL_J1156.6+0640_daily_bin946.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/191342/ft2_4FGL_J1156.6+0640_daily_bin946.fits
.....................!
real 11.41
user 11.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191342/ft1_filtered_4FGL_J1156.6+0640_daily_bin946.fits evtable="EVENTS" scfile=/scratch/kocevski/191342/ft2_4FGL_J1156.6+0640_daily_bin946.fits sctable="SC_DATA" expcube=/scratch/kocevski/191342/ltcube_484531201_484790401_4FGL_J1156.6+0640_daily_bin946.fits outfile=/scratch/kocevski/191342/expmap_484531201_484790401_4FGL_J1156.6+0640_daily_bin946.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/191342/ltcube_484531201_484790401_4FGL_J1156.6+0640_daily_bin946.fits
.....................!
real 190.81
user 185.42
sys 4.88

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/191342/ft1_filtered_4FGL_J1156.6+0640_daily_bin946.fits scfile=/scratch/kocevski/191342/ft2_4FGL_J1156.6+0640_daily_bin946.fits outfile=/scratch/kocevski/191342/cmap_484531201_484790401_4FGL_J1156.6+0640_daily_bin946.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191342/ft1_filtered_4FGL_J1156.6+0640_daily_bin946.fits scfile=/scratch/kocevski/191342/ft2_4FGL_J1156.6+0640_daily_bin946.fits outfile=/scratch/kocevski/191342/cmap_HighResolution_484531201_484790401_4FGL_J1156.6+0640_daily_bin946.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.843       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8938       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7559       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1985       1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.416       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.284       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6937       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .38475       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .80747       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2139       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89201       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=   4520.654     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3769 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.847        17.797        .80240E-06   -.77353E-05
   2  Prefactor     .10000E-03    26.850        .94341E-06** at limit **
   3  Prefactor     2.8938        3.0412        .26422E-06   -.20070E-04
   4  Prefactor     .10000E-03    16.269        .22405E-06** at limit **
   5  Prefactor     28.262        107.63        .18145E-04    .11068E-03
   6  Prefactor     4.7562        13.634        .74950E-05   -.73190E-04
   7  Prefactor     .10000E-03    4.2357        .11974E-06** at limit **
   8  Prefactor     7.2001        17.304        .31460E-05   -.47751E-04
   9  Prefactor     50.422        84.257       -.41171E-05   -.54860E-05
  10  Prefactor     23.216        34.100        .55920E-06    .20962E-04
  11  Prefactor     39.289        35.524        .11861E-05    .19760E-04
  12  Prefactor     7.7363        5.2747        .93170E-07   -.17080E-03
  13  Prefactor     .10000E-03    1.5861       -.13686E-06** at limit **
  14  Prefactor     .10000E-03    16.540        .62711E-07** at limit **
  15  Prefactor     .10000E-03    8.8191       -.74581E-07** at limit **
  16  norm          3.6935        3.2799        .68317E-07   -.35842E-04
  17  norm          .10000E-03    1.0596        .99472E-08** at limit **
  18  Prefactor     .10000E-03    9.2590        .89394E-07** at limit **
  19  norm          .10000E-03    21.549       -.91892E-06** at limit **
  20  Prefactor     .10000E-03    40.374       -.10367E-06** at limit **
  21  norm          .38474        .50996        .10818E-06    .11380E-03
  22  Prefactor     .10000E-03    4.0368       -.24233E-07** at limit **
  23  Prefactor     .10000E-03    40.167       -.41710E-06** at limit **
  24  norm          .80736        1.4716        .25772E-06    .20019E-03
  25  Normalizat    1.2134        .24501       -.47549E-05    .87985E-04
  26  Prefactor     .89236        .19968        .18847E-05   -.17354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.8473
  Prefactor  = 0.0001
  Prefactor  = 2.89385
  Prefactor  = 0.0001
  Prefactor  = 28.2619
  Prefactor  = 4.75624
  Prefactor  = 0.0001
  Prefactor  = 7.20013
  Prefactor  = 50.422
  Prefactor  = 23.2163
  Prefactor  = 39.2887
  Prefactor  = 7.73628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69353
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.384742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.807362
  Normalizat = 1.21344
  Prefactor  = 0.892359
 **********
 **   18 **HESSE 
 **********

 FCN=   4520.654     FROM HESSE     STATUS=OK           458 CALLS     4227 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.847        17.842        .82035E-04   -1.4731    
   2  Prefactor     .10000E-03    26.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8938        3.0328        .11449E-03   -1.5368    
   4  Prefactor     .10000E-03    16.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.262        114.50        .75499E-04   -1.4644    
   6  Prefactor     4.7562        13.984        .92249E-03   -1.5272    
   7  Prefactor     .10000E-03    4.2498        .13512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2001        17.284        .74752E-03   -1.5171    
   9  Prefactor     50.422        84.552        .56480E-04   -1.4287    
  10  Prefactor     23.216        34.108        .83137E-04   -1.4744    
  11  Prefactor     39.289        35.514        .63950E-04   -1.4454    
  12  Prefactor     7.7363        5.2837        .12183E-03   -1.5152    
  13  Prefactor     .10000E-03    1.6128        .82512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6935        3.2678        .10881E-03   -1.5324    
  17  norm          .10000E-03    1.0641        .67542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.2612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    21.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .38474        .47592        .52123E-03   -1.5584    
  22  Prefactor     .10000E-03    4.0406        .13193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .80736        1.3252        .10561E-02   -1.5528    
  25  Normalizat    1.2134        .28291        .25520E-03   -.86188    
  26  Prefactor     .89236        .23385        .25462E-03   -.96409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02895e-09
Minuit parameter uncertainties:
  1  17.8458
  2  0.000155249
  3  3.03294
  4  2.86522e-05
  5  114.151
  6  13.9937
  7  2.47132e-07
  8  17.2955
  9  84.754
  10  34.1369
  11  35.5327
  12  5.28401
  13  3.21821e-06
  14  4.58093e-06
  15  7.52407e-06
  16  3.26795
  17  6.48036e-07
  18  8.88438e-06
  19  0.000109084
  20  1.43921e-05
  21  0.475927
  22  4.70592e-06
  23  6.75891e-05
  24  1.32523
  25  0.283267
  26  0.23411
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.826e+01  1.142e+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:  8.924e-01  2.341e-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.213e+00  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/191342/likelihoodResults_484531201_484790401_4FGL_J1156.6+0640_daily_bin946.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) = 4520.45581987
delta logL = 0.198460610554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4520.41035329
delta logL = 0.243927184893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.731       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3676       1.0000          .0000       10.000    
     3 'Normalizat'    1.1649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91717       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=   4520.410     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      305 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.705        155.90        .10435E-03   -.10611E-03
   2  Index         3.3707        2.8248        .55608E-02   -.41504E-04
   3  Normalizat    1.1624        .28018        .26001E-03    .16531E-03
   4  Prefactor     .91927        .23759        .25127E-03    .30993E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.705
  Index      = 3.37068
  Normalizat = 1.16241
  Prefactor  = 0.919266
 **********
 **   18 **HESSE 
 **********

 FCN=   4520.410     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.705        47.609        .41742E-05   -1.4941    
   2  Index         3.3707        1.4749        .22243E-03   -.33193    
   3  Normalizat    1.1624        .27894        .52002E-04   -.87772    
   4  Prefactor     .91927        .23625        .10051E-04   -.95471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73698e-10
Minuit parameter uncertainties:
  1  47.7324
  2  1.49996
  3  0.2793
  4  0.236515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191342': 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) = 4520.41031008
delta logL = 0.243970403735

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.471e+01  4.773e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  3.371e+00  1.500e+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.193e-01  2.365e-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.162e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/191342/cmap_HighResolution_484531201_484790401_4FGL_J1156.6+0640_daily_bin946.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.68e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-04 17:32:03.854784', job_id='191342', GAL2='0.92', fit_tolerance='1e-08', EG2='1.16', EG='1.21', time_epoch_completed='1630801923.85', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.44e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='946' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:32:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 191342: <4FGL_J1156.6+0640_daily_bin946> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin946 179.164 6.6728 484531201 484790401 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

