/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 9 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 = 7655
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin272
RA = 179.164, Dec = 6.6728
tmin = 309830401, tmax = 310089601
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='186797', job_status='RUN', time_executed='2021-09-04 17:02:01.485151', time_epoch_executed='1630800121.49' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186797/ft1_4FGL_J1156.6+0640_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186797/ft2_4FGL_J1156.6+0640_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186797/ft1_4FGL_J1156.6+0640_daily_bin272.fits outfile=/scratch/kocevski/186797/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin272.fits ra=179.164 dec=6.6728 rad=12.0 tmin=309830401.0 tmax=310089601.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.57
user 3.36
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186797/ft1_filtered_4FGL_J1156.6+0640_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/186797/ft2_4FGL_J1156.6+0640_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/186797/ltcube_309830401_310089601_4FGL_J1156.6+0640_daily_bin272.fits outfile=/scratch/kocevski/186797/expmap_309830401_310089601_4FGL_J1156.6+0640_daily_bin272.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/186797/ltcube_309830401_310089601_4FGL_J1156.6+0640_daily_bin272.fits
.....................!
real 190.88
user 186.52
sys 4.02

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/186797/ft1_filtered_4FGL_J1156.6+0640_daily_bin272.fits scfile=/scratch/kocevski/186797/ft2_4FGL_J1156.6+0640_daily_bin272.fits outfile=/scratch/kocevski/186797/cmap_309830401_310089601_4FGL_J1156.6+0640_daily_bin272.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.50
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186797/ft1_filtered_4FGL_J1156.6+0640_daily_bin272.fits scfile=/scratch/kocevski/186797/ft2_4FGL_J1156.6+0640_daily_bin272.fits outfile=/scratch/kocevski/186797/cmap_HighResolution_309830401_310089601_4FGL_J1156.6+0640_daily_bin272.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11564E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.356       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.897       1.0000         .10000E-03   10000.    
     5 'Prefactor '    86.805       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.883       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1620       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8029       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.628       1.0000         .10000E-03   10000.    
    19 'norm      '    .91531       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5063       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.644       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.925       1.0000         .10000E-03   10000.    
    24 'norm      '    6.8623       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0049       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=   5724.110     FROM MIGRAD    STATUS=CONVERGED   1072 CALLS     3573 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    19.921        .36285E-03** at limit **
   2  Prefactor     34.386        42.149        .68368E-04    .31927E-04
   3  Prefactor     .10000E-03    1.4316        .17433E-03** at limit **
   4  Prefactor     33.895        27.760        .68828E-04   -.95802E-05
   5  Prefactor     86.788        106.86        .43121E-04    .16926E-04
   6  Prefactor     14.369        11.208        .10566E-03   -.80268E-04
   7  Prefactor     .10000E-03    4.4835        .15596E-02** at limit **
   8  Prefactor     49.878        23.442        .56780E-04   -.23526E-03
   9  Prefactor     .10000E-03    86.578        .18142E-02** at limit **
  10  Prefactor     .10000E-03    25.022        .18142E-02** at limit **
  11  Prefactor     .10000E-03    7.8789        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.7023        .95602E-03** at limit **
  13  Prefactor     2.3336        2.0961        .10080E-03   -.26842E-04
  14  Prefactor     26.695        36.836        .77505E-04    .34617E-04
  15  Prefactor     .10000E-03    26.733        .36285E-03** at limit **
  16  norm          3.1622        2.5695        .10587E-03   -.11549E-02
  17  norm          2.8108        4.3850        .71960E-03    .29613E-03
  18  Prefactor     36.624        29.805        .66220E-04    .14868E-04
  19  norm          .84304        408.59        .69673E-02    .51421E-04
  20  Prefactor     .10000E-03    92.889        .18142E-02** at limit **
  21  norm          1.5060        .72125        .40417E-04    .79632E-03
  22  Prefactor     12.643        11.006        .11265E-03   -.38349E-05
  23  Prefactor     24.923        29.788        .80237E-04   -.46757E-05
  24  norm          6.8619        2.3314        .64278E-04    .79413E-04
  25  Normalizat    1.0146        .25867        .28767E-03   -.10694E-03
  26  Prefactor     1.0048        .21594        .25485E-03    .73336E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  Prefactor  = 34.3857
  Prefactor  = 0.0001
  Prefactor  = 33.8947
  Prefactor  = 86.7884
  Prefactor  = 14.3687
  Prefactor  = 0.0001
  Prefactor  = 49.8779
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33359
  Prefactor  = 26.6954
  Prefactor  = 0.000100001
  norm       = 3.16217
  norm       = 2.81076
  Prefactor  = 36.6236
  norm       = 0.843041
  Prefactor  = 0.0001
  norm       = 1.50605
  Prefactor  = 12.6434
  Prefactor  = 24.9228
  norm       = 6.86192
  Normalizat = 1.01458
  Prefactor  = 1.00482
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.110     FROM HESSE     STATUS=OK           434 CALLS     4007 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    19.922        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.386        42.158        .27347E-05   -1.4535    
   3  Prefactor     .10000E-03    1.4316        .34866E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.895        27.761        .27531E-05   -1.4543    
   5  Prefactor     86.788        106.87        .86242E-05   -1.3842    
   6  Prefactor     14.369        11.208        .42264E-05   -1.4950    
   7  Prefactor     .10000E-03    4.4843        .31192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.878        23.441        .11356E-04   -1.4294    
   9  Prefactor     .10000E-03    86.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.8792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7026        .19120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3336        2.0961        .40322E-05   -1.5402    
  14  Prefactor     26.695        36.780        .31002E-05   -1.4674    
  15  Prefactor     .10000E-03    26.734        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1622        2.5694        .42349E-05   -1.5352    
  17  norm          2.8108        4.1144        .28784E-04   -1.5373    
  18  Prefactor     36.624        29.804        .13244E-04   -1.4497    
  19  norm          .84304        365.77        .27869E-03   -1.5524    
  20  Prefactor     .10000E-03    92.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5060        .72067        .16167E-05   -1.5463    
  22  Prefactor     12.643        11.006        .45060E-05   -1.4997    
  23  Prefactor     24.923        29.789        .32095E-05   -1.4709    
  24  norm          6.8619        2.3313        .25711E-05   -1.5184    
  25  Normalizat    1.0146        .25819        .11507E-04   -.92544    
  26  Prefactor     1.0048        .21543        .10194E-04   -.92569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60226e-09
Minuit parameter uncertainties:
  1  0.00116417
  2  42.1941
  3  1.38509e-07
  4  27.7715
  5  107.111
  6  11.2093
  7  3.15232e-05
  8  23.4457
  9  0.000192059
  10  0.000370129
  11  8.16752e-08
  12  2.91202e-06
  13  2.09619
  14  36.8116
  15  0.000289718
  16  2.56947
  17  4.11485
  18  29.8163
  19  35.3376
  20  0.000282141
  21  0.720674
  22  11.0078
  23  29.8063
  24  2.33132
  25  0.258506
  26  0.215612
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  8.679e+01  1.071e+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.005e+00  2.156e-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.015e+00  2.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/186797/likelihoodResults_309830401_310089601_4FGL_J1156.6+0640_daily_bin272.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) = 5724.10130222
delta logL = 0.00832681450174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5724.09521152
delta logL = 0.014417516003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.268       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4765       1.0000          .0000       10.000    
     3 'Normalizat'    1.0082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0085       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=   5724.095     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      238 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.268        2107.7        .11726E-02   -.25537E-04
   2  Index         2.4766        3.3551        .19760        .67584E-04
   3  Normalizat    1.0079        .64019E-01    .46270E-01    .10125E-04
   4  Prefactor     1.0088        .51171E-01    .43557E-01    .11205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.2684
  Index      = 2.47658
  Normalizat = 1.00788
  Prefactor  = 1.00877
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.095     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.268        137.96        .46904E-04   -1.3994    
   2  Index         2.4766        1.0533        .67919E-02   -.52902    
   3  Normalizat    1.0079        .24521        .28830E-03   -.92767    
   4  Prefactor     1.0088        .21401        .25442E-03   -.92438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97359e-09
Minuit parameter uncertainties:
  1  138.574
  2  1.06407
  3  0.245483
  4  0.214193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186797': 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) = 5724.09521059
delta logL = 0.0144184522442

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  7.327e+01  1.386e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.477e+00  1.064e+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.009e+00  2.142e-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.008e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.92
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/186797/cmap_HighResolution_309830401_310089601_4FGL_J1156.6+0640_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.10e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-04 17:14:38.335992', job_id='186797', GAL2='1.01', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630800878.34', return_code2='0', ts='0.92', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.44e-02', ts2='0.95', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='272' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:14:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 186797: <4FGL_J1156.6+0640_daily_bin272> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin272> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:42 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:43 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:01:43 2021
Terminated at Sat Sep  4 17:14:39 2021
Results reported at Sat Sep  4 17:14:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin272 179.164 6.6728 309830401 310089601 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 :                                   755.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

