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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin578
RA = 179.164, Dec = 6.6728
tmin = 389145601, tmax = 389404801
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='189496', job_status='RUN', time_executed='2021-09-04 17:14:39.035877', time_epoch_executed='1630800879.04' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189496

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189496/ft1_4FGL_J1156.6+0640_daily_bin578.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189496/ft2_4FGL_J1156.6+0640_daily_bin578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189496/ft1_4FGL_J1156.6+0640_daily_bin578.fits outfile=/scratch/kocevski/189496/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin578.fits ra=179.164 dec=6.6728 rad=12.0 tmin=389145601.0 tmax=389404801.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.51
user 5.21
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189496/ft1_filtered_4FGL_J1156.6+0640_daily_bin578.fits" evtable="EVENTS" scfile=/scratch/kocevski/189496/ft2_4FGL_J1156.6+0640_daily_bin578.fits sctable="SC_DATA" outfile=/scratch/kocevski/189496/ltcube_389145601_389404801_4FGL_J1156.6+0640_daily_bin578.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/189496/ft2_4FGL_J1156.6+0640_daily_bin578.fits
.....................!
real 12.37
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189496/ft1_filtered_4FGL_J1156.6+0640_daily_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/189496/ft2_4FGL_J1156.6+0640_daily_bin578.fits sctable="SC_DATA" expcube=/scratch/kocevski/189496/ltcube_389145601_389404801_4FGL_J1156.6+0640_daily_bin578.fits outfile=/scratch/kocevski/189496/expmap_389145601_389404801_4FGL_J1156.6+0640_daily_bin578.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/189496/ltcube_389145601_389404801_4FGL_J1156.6+0640_daily_bin578.fits
.....................!
real 190.58
user 185.41
sys 4.60

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/189496/ft1_filtered_4FGL_J1156.6+0640_daily_bin578.fits scfile=/scratch/kocevski/189496/ft2_4FGL_J1156.6+0640_daily_bin578.fits outfile=/scratch/kocevski/189496/cmap_389145601_389404801_4FGL_J1156.6+0640_daily_bin578.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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189496/ft1_filtered_4FGL_J1156.6+0640_daily_bin578.fits scfile=/scratch/kocevski/189496/ft2_4FGL_J1156.6+0640_daily_bin578.fits outfile=/scratch/kocevski/189496/cmap_HighResolution_389145601_389404801_4FGL_J1156.6+0640_daily_bin578.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.63
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3845       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    170.00       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7005       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8743       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.236       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11692E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .83446       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.758       1.0000         .10000E-03   10000.    
    24 'norm      '    4.4460       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1019       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88903       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=   5231.226     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3140 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.4561        .37584E-06** at limit **
   2  Prefactor     48.065        46.478       -.24618E-06    .57388E-05
   3  Prefactor     3.3688        2.4346        .48452E-07   -.55184E-04
   4  Prefactor     .10000E-03    13.623       -.15821E-06** at limit **
   5  Prefactor     42.478        93.552       -.21885E-07   -.16475E-04
   6  Prefactor     .10000E-03    9.3094        .90826E-06** at limit **
   7  Prefactor     2.3841        5.9000        .45646E-05   -.34905E-03
   8  Prefactor     .10000E-03    10.518        .56934E-06** at limit **
   9  Prefactor     170.01        122.13       -.58621E-06   -.41004E-04
  10  Prefactor     .10000E-03    10.647       -.27464E-06** at limit **
  11  Prefactor     6.7217        23.562        .56396E-06   -.33802E-04
  12  Prefactor     2.9021        3.5945        .36443E-07    .20486E-04
  13  Prefactor     3.8746        3.5431        .87010E-07    .37402E-04
  14  Prefactor     .10000E-03    16.531       -.97432E-07** at limit **
  15  Prefactor     17.237        14.380        .41182E-06   -.12638E-04
  16  norm          .10000E-03    1.0195       -.78946E-06** at limit **
  17  norm          .10000E-03    1.0752       -.31186E-07** at limit **
  18  Prefactor     .10000E-03    9.3947        .31424E-06** at limit **
  19  norm          .10000E-03    15.721        .28092E-06** at limit **
  20  Prefactor     .10000E-03    165.37        .77992E-06** at limit **
  21  norm          .83450        .61043       -.99502E-07   -.20174E-02
  22  Prefactor     .10000E-03    8.1419        .24100E-06** at limit **
  23  Prefactor     30.765        32.385        .39054E-06    .85547E-04
  24  norm          4.4462        2.0445        .49186E-07   -.69025E-04
  25  Normalizat    1.1014        .21904       -.11073E-05   -.13806E-03
  26  Prefactor     .88943        .17405        .18598E-06   -.35301E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 48.0646
  Prefactor  = 3.36885
  Prefactor  = 0.0001
  Prefactor  = 42.4776
  Prefactor  = 0.0001
  Prefactor  = 2.38407
  Prefactor  = 0.000100001
  Prefactor  = 170.012
  Prefactor  = 0.0001
  Prefactor  = 6.72171
  Prefactor  = 2.90212
  Prefactor  = 3.87463
  Prefactor  = 0.0001
  Prefactor  = 17.2372
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.834502
  Prefactor  = 0.0001
  Prefactor  = 30.7646
  norm       = 4.44624
  Normalizat = 1.10137
  Prefactor  = 0.88943
 **********
 **   18 **HESSE 
 **********

 FCN=   5231.226     FROM HESSE     STATUS=OK           452 CALLS     3592 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     48.065        46.618        .57844E-04   -1.4320    
   3  Prefactor     3.3688        2.4398        .91863E-04   -1.5341    
   4  Prefactor     .10000E-03    13.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.478        93.922        .61506E-04   -1.4404    
   6  Prefactor     .10000E-03    9.4150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3841        5.9460        .13263E-02   -1.5399    
   8  Prefactor     .10000E-03    10.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     170.01        122.85        .30943E-04   -1.3093    
  10  Prefactor     .10000E-03    10.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7217        23.491        .15501E-03   -1.5189    
  12  Prefactor     2.9021        3.5814        .14295E-03   -1.5367    
  13  Prefactor     3.8746        3.5331        .12153E-03   -1.5314    
  14  Prefactor     .10000E-03    16.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.237        14.302        .96473E-04   -1.4877    
  16  norm          .10000E-03    1.0811        .73072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0817        .73151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.3953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    165.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .83450        .59647        .44111E-04   -1.5525    
  22  Prefactor     .10000E-03    8.1654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.765        32.378        .72245E-04   -1.4598    
  24  norm          4.4462        2.0407        .66559E-04   -1.5286    
  25  Normalizat    1.1014        .25841        .26589E-03   -.89708    
  26  Prefactor     .88943        .20405        .24808E-03   -.96511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27097e-09
Minuit parameter uncertainties:
  1  6.54673e-05
  2  46.6533
  3  2.43985
  4  8.80308e-05
  5  94.2519
  6  0.00012395
  7  5.94746
  8  0.000168977
  9  123.033
  10  1.27475e-05
  11  23.5231
  12  3.58165
  13  3.53325
  14  2.69232e-05
  15  14.305
  16  5.66697e-05
  17  2.70961e-06
  18  4.26544e-06
  19  1.54425e-05
  20  3.51526e-05
  21  0.596474
  22  9.94193e-05
  23  32.3964
  24  2.04072
  25  0.258709
  26  0.204222
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  4.248e+01  9.425e+01  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.894e-01  2.042e-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.101e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189496/likelihoodResults_389145601_389404801_4FGL_J1156.6+0640_daily_bin578.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) = 5230.98343077
delta logL = 0.242668398345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5230.98075042
delta logL = 0.245348746541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.374       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1488       1.0000          .0000       10.000    
     3 'Normalizat'    1.0655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90693       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=   5230.981     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      323 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.376        70.315        .84680E-04    .11251E-03
   2  Index         3.1488        1.5073        .59792E-02    .92753E-04
   3  Normalizat    1.0654        .24833        .26985E-03    .18541E-03
   4  Prefactor     .90700        .20599        .24593E-03    .14747E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3758
  Index      = 3.14882
  Normalizat = 1.06544
  Prefactor  = 0.906997
 **********
 **   18 **HESSE 
 **********

 FCN=   5230.981     FROM HESSE     STATUS=OK            25 CALLS      348 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.376        53.751        .33872E-05   -1.4762    
   2  Index         3.1488        1.1567        .23917E-03   -.37926    
   3  Normalizat    1.0654        .24822        .10794E-04   -.90869    
   4  Prefactor     .90700        .20587        .98371E-05   -.95897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46223e-10
Minuit parameter uncertainties:
  1  53.8673
  2  1.16898
  3  0.248492
  4  0.20605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189496': 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) = 5230.98075036
delta logL = 0.245348807422

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.238e+01  5.387e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  3.149e+00  1.169e+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.070e-01  2.060e-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.065e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/189496/cmap_HighResolution_389145601_389404801_4FGL_J1156.6+0640_daily_bin578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-04 17:26:29.218702', job_id='189496', GAL2='0.91', fit_tolerance='1e-08', EG2='1.07', EG='1.10', time_epoch_completed='1630801589.22', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.45e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='578' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 189496: <4FGL_J1156.6+0640_daily_bin578> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin578 179.164 6.6728 389145601 389404801 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 :                             261.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

