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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin620
RA = 179.164, Dec = 6.6728
tmin = 400032001, tmax = 400291201
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='189562', job_status='RUN', time_executed='2021-09-04 17:14:08.814985', time_epoch_executed='1630800848.82' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189562/ft1_4FGL_J1156.6+0640_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189562/ft2_4FGL_J1156.6+0640_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189562/ft1_4FGL_J1156.6+0640_daily_bin620.fits outfile=/scratch/kocevski/189562/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin620.fits ra=179.164 dec=6.6728 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.33
user 4.10
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189562/ft1_filtered_4FGL_J1156.6+0640_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/189562/ft2_4FGL_J1156.6+0640_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/189562/ltcube_400032001_400291201_4FGL_J1156.6+0640_daily_bin620.fits outfile=/scratch/kocevski/189562/expmap_400032001_400291201_4FGL_J1156.6+0640_daily_bin620.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/189562/ltcube_400032001_400291201_4FGL_J1156.6+0640_daily_bin620.fits
.....................!
real 190.42
user 185.97
sys 4.07

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189562/ft1_filtered_4FGL_J1156.6+0640_daily_bin620.fits scfile=/scratch/kocevski/189562/ft2_4FGL_J1156.6+0640_daily_bin620.fits outfile=/scratch/kocevski/189562/cmap_HighResolution_400032001_400291201_4FGL_J1156.6+0640_daily_bin620.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/189562/ft1_filtered_4FGL_J1156.6+0640_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/189562/ft2_4FGL_J1156.6+0640_daily_bin620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189562/Model_4FGL_J1156.6+0640_daily_bin620.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/189562/ft1_filtered_4FGL_J1156.6+0640_daily_bin620.fits.....................!
real 64.24
user 62.80
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6787       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    169.21       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   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 '    22.944       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2429       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7308       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .85270       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9334       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.812       1.0000         .10000E-03   10000.    
    24 'norm      '    9.2926       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4083       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1002       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=   6856.232     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3116 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6812        11.934       -.68318E-06    .76590E-04
   2  Prefactor     41.289        47.983       -.21208E-07   -.28809E-04
   3  Prefactor     .36160        2.2718        .12569E-05   -.85831E-03
   4  Prefactor     23.261        24.015       -.43825E-07   -.20415E-05
   5  Prefactor     169.59        143.32       -.55420E-05   -.12402E-03
   6  Prefactor     .10000E-03    3.6329       -.48989E-07** at limit **
   7  Prefactor     8.7445        8.1202        .11226E-06    .79288E-05
   8  Prefactor     6.9783        21.573        .33986E-06    .95033E-05
   9  Prefactor     .10000E-03    41.277        .80638E-06** at limit **
  10  Prefactor     .10000E-03    13.093        .48801E-07** at limit **
  11  Prefactor     .10000E-03    13.849        .11488E-06** at limit **
  12  Prefactor     .10000E-03    1.2618       -.40705E-07** at limit **
  13  Prefactor     .10000E-03    1.1173       -.45482E-07** at limit **
  14  Prefactor     .10000E-03    17.432        .29858E-06** at limit **
  15  Prefactor     22.948        16.600        .12399E-06    .14596E-04
  16  norm          2.2426        3.5989       -.21258E-06   -.33415E-06
  17  norm          5.7333        4.5703       -.17283E-06    .18875E-03
  18  Prefactor     .10000E-03    96.498        .77473E-06** at limit **
  19  norm          .10000E-03    12.902        .13743E-06** at limit **
  20  Prefactor     .10000E-03    50.505       -.10440E-05** at limit **
  21  norm          .85283        .58497        .10067E-06    .83818E-03
  22  Prefactor     3.9332        9.4854       -.16211E-06    .95630E-05
  23  Prefactor     40.830        38.891       -.12574E-07   -.82363E-05
  24  norm          9.2930        2.6535       -.31931E-08    .27797E-04
  25  Normalizat    1.4073        .27846       -.43373E-05   -.77153E-04
  26  Prefactor     1.1008        .21692        .47252E-05    .36555E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68121
  Prefactor  = 41.2887
  Prefactor  = 0.361597
  Prefactor  = 23.2608
  Prefactor  = 169.593
  Prefactor  = 0.0001
  Prefactor  = 8.74449
  Prefactor  = 6.9783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9484
  norm       = 2.24259
  norm       = 5.73329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.85283
  Prefactor  = 3.9332
  Prefactor  = 40.83
  norm       = 9.29302
  Normalizat = 1.40733
  Prefactor  = 1.10077
 **********
 **   18 **HESSE 
 **********

 FCN=   6856.232     FROM HESSE     STATUS=OK           464 CALLS     3580 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6812        11.975        .10529E-02   -1.5324    
   2  Prefactor     41.289        48.193        .62426E-04   -1.4422    
   3  Prefactor     .36160        5.7157        .19443E-02   -1.5588    
   4  Prefactor     23.261        24.017        .83054E-04   -1.4743    
   5  Prefactor     169.59        149.14        .15507E-03   -1.3096    
   6  Prefactor     .10000E-03    3.6348        .15411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7445        8.1197        .13555E-03   -1.5116    
   8  Prefactor     6.9783        21.554        .15195E-03   -1.5180    
   9  Prefactor     .10000E-03    41.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2652        .90826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1246        .85463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.948        16.416        .41812E-03   -1.4750    
  16  norm          2.2426        3.5490        .16841E-03   -1.5408    
  17  norm          5.7333        4.5724        .72007E-03   -1.5229    
  18  Prefactor     .10000E-03    97.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .85283        .56600        .48387E-03   -1.5523    
  22  Prefactor     3.9332        9.4433        .20341E-03   -1.5311    
  23  Prefactor     40.830        38.804        .62746E-04   -1.4429    
  24  norm          9.2930        2.6501        .68863E-04   -1.5098    
  25  Normalizat    1.4073        .28824        .29716E-03   -.80417    
  26  Prefactor     1.1008        .22856        .28102E-03   -.89442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54764e-09
Minuit parameter uncertainties:
  1  11.983
  2  48.2385
  3  2.87518
  4  24.0271
  5  149.476
  6  8.4001e-06
  7  8.12071
  8  21.5784
  9  0.000145283
  10  2.14066e-05
  11  4.17582e-06
  12  1.49894e-06
  13  1.70774e-06
  14  4.23559e-05
  15  16.4191
  16  3.54933
  17  4.57273
  18  6.76598e-05
  19  1.32921e-05
  20  0.000184295
  21  0.566005
  22  9.44686
  23  38.8285
  24  2.65011
  25  0.288574
  26  0.228759
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.696e+02  1.495e+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.101e+00  2.288e-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.407e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 5.29e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.95e-05

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

Saving results to:
/scratch/kocevski/189562/likelihoodResults_400032001_400291201_4FGL_J1156.6+0640_daily_bin620.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) = 6856.14616428
delta logL = 0.0856269791802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6856.13180959
delta logL = 0.0999816695485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.705       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7970       1.0000          .0000       10.000    
     3 'Normalizat'    1.3726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1232       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=   6856.132     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      311 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     89.661        5774.2        .42424E-04   -.14192E-03
   2  Index         2.7976        6.3500        .60763E-02   -.11489E-03
   3  Normalizat    1.3704        .39368        .30053E-03    .63512E-03
   4  Prefactor     1.1251        .32292        .27843E-03    .37876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 89.6608
  Index      = 2.7976
  Normalizat = 1.37041
  Prefactor  = 1.12511
 **********
 **   18 **HESSE 
 **********

 FCN=   6856.132     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     89.661        203.65        .84849E-05   -1.3811    
   2  Index         2.7976        1.2364        .24305E-03   -.45613    
   3  Normalizat    1.3704        .28177        .60105E-04   -.81488    
   4  Prefactor     1.1251        .23333        .55687E-04   -.88668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5587e-09
Minuit parameter uncertainties:
  1  205.273
  2  1.25257
  3  0.282092
  4  0.233546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189562': 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) = 6856.13177383
delta logL = 0.100017434826

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  8.966e+01  2.053e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.798e+00  1.253e+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.125e+00  2.335e-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.370e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 179.164 6.673
Photon Index (Free Index): 2.80 +/- 1.25
Photon Flux (Free Index): 8.31e-08 +/- 7.92e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/189562/cmap_HighResolution_400032001_400291201_4FGL_J1156.6+0640_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='1.86e-05', photon_flux_error='5.29e-08', dlogl='1.00e-01', energy_flux='2.21e-05', photon_flux2='8.31e-08', job_status='DONE', time_completed='2021-09-04 17:27:51.820423', photon_index_error2='1.25', photon_index2='2.80', ts='1.64', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.66e-05', EG='1.41', time_epoch_completed='1630801671.82', return_code='0', job_id='189562', GAL2='1.13', EG2='1.37', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='7.92e-08', ts2='1.88', photon_index='2.32' WHERE bin_id='620' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:27:51 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin620 179.164 6.6728 400032001 400291201 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 :                                   822.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

