/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 178 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 = 7389
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin76
RA = 179.164, Dec = 6.6728
tmin = 259027201, tmax = 259286401
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='186499', job_status='RUN', time_executed='2021-09-04 17:04:27.261048', time_epoch_executed='1630800267.26' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186499/ft1_4FGL_J1156.6+0640_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186499/ft2_4FGL_J1156.6+0640_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186499/ft1_4FGL_J1156.6+0640_daily_bin76.fits outfile=/scratch/kocevski/186499/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin76.fits ra=179.164 dec=6.6728 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.43
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186499/ft1_filtered_4FGL_J1156.6+0640_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/186499/ft2_4FGL_J1156.6+0640_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/186499/ltcube_259027201_259286401_4FGL_J1156.6+0640_daily_bin76.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/186499/ft2_4FGL_J1156.6+0640_daily_bin76.fits
.....................!
real 13.13
user 12.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186499/ft1_filtered_4FGL_J1156.6+0640_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/186499/ft2_4FGL_J1156.6+0640_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/186499/ltcube_259027201_259286401_4FGL_J1156.6+0640_daily_bin76.fits outfile=/scratch/kocevski/186499/expmap_259027201_259286401_4FGL_J1156.6+0640_daily_bin76.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/186499/ltcube_259027201_259286401_4FGL_J1156.6+0640_daily_bin76.fits
.....................!
real 190.81
user 185.25
sys 5.12

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/186499/ft1_filtered_4FGL_J1156.6+0640_daily_bin76.fits scfile=/scratch/kocevski/186499/ft2_4FGL_J1156.6+0640_daily_bin76.fits outfile=/scratch/kocevski/186499/cmap_259027201_259286401_4FGL_J1156.6+0640_daily_bin76.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186499/ft1_filtered_4FGL_J1156.6+0640_daily_bin76.fits scfile=/scratch/kocevski/186499/ft2_4FGL_J1156.6+0640_daily_bin76.fits outfile=/scratch/kocevski/186499/cmap_HighResolution_259027201_259286401_4FGL_J1156.6+0640_daily_bin76.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.543       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.521       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8682       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11473E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40330E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19826E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .21545E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8552       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.8812       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.479       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .61015       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74367       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0724       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=   6185.903     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     2695 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9692       -.57237E-07** at limit **
   2  Prefactor     .10000E-03    11.316       -.15137E-06** at limit **
   3  Prefactor     3.1563        2.0089       -.17117E-07   -.15565E-03
   4  Prefactor     .10000E-03    20.422       -.14208E-06** at limit **
   5  Prefactor     .10000E-03    41.191       -.93586E-05** at limit **
   6  Prefactor     .10000E-03    11.737        .10794E-06** at limit **
   7  Prefactor     22.542        9.3575        .17260E-06   -.12761E-03
   8  Prefactor     5.1920        15.915        .55795E-06   -.85772E-04
   9  Prefactor     .10000E-03    37.449        .32247E-05** at limit **
  10  Prefactor     41.508        31.393       -.93012E-06   -.19922E-03
  11  Prefactor     9.7891        12.271        .10623E-05   -.17470E-04
  12  Prefactor     1.8663        2.8360       -.18416E-06   -.43756E-03
  13  Prefactor     .10000E-03    1.7578        .10931E-07** at limit **
  14  Prefactor     .10065E-03    22.682        .10138E-04** at limit **
  15  Prefactor     .93227E-01    5.8911       -.61795E-06    .24697E-04
  16  norm          .10000E-03    1.5576        .14760E-06** at limit **
  17  norm          3.8462        4.5735       -.79902E-05   -.23695E-02
  18  Prefactor     .10000E-03    36.959        .42847E-05** at limit **
  19  norm          5.9291        96.365        .10336E-03   -.53752E-04
  20  Prefactor     .10000E-03    46.619       -.27910E-05** at limit **
  21  norm          4.5377        .77341       -.10317E-06   -.17899E-02
  22  Prefactor     23.486        13.088       -.20787E-07   -.11851E-03
  23  Prefactor     .10000E-03    48.196        .42448E-05** at limit **
  24  norm          .61121        1.3648       -.25951E-06   -.14698E-02
  25  Normalizat    .74381        .19457        .40821E-05   -.61647E-03
  26  Prefactor     1.0721        .16798       -.29771E-05   -.37974E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5421
  Prefactor  = 5.19196
  Prefactor  = 0.0001
  Prefactor  = 41.5077
  Prefactor  = 9.78906
  Prefactor  = 1.86633
  Prefactor  = 0.0001
  Prefactor  = 0.000100649
  Prefactor  = 0.0932269
  norm       = 0.0001
  norm       = 3.84616
  Prefactor  = 0.0001
  norm       = 5.92911
  Prefactor  = 0.0001
  norm       = 4.53767
  Prefactor  = 23.4863
  Prefactor  = 0.0001
  norm       = 0.611206
  Normalizat = 0.743807
  Prefactor  = 1.07211
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.903     FROM HESSE     STATUS=OK           464 CALLS     3159 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9812        .15303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1563        2.0057        .85732E-04   -1.5353    
   4  Prefactor     .10000E-03    20.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.542        9.3585        .84363E-04   -1.4758    
   8  Prefactor     5.1920        15.909        .17652E-03   -1.5252    
   9  Prefactor     .10000E-03    37.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.508        31.360        .62210E-04   -1.4419    
  11  Prefactor     9.7891        12.261        .12804E-03   -1.5082    
  12  Prefactor     1.8663        2.7723        .15590E-03   -1.5435    
  13  Prefactor     .10000E-03    3.1172        .19914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10065E-03    144.18        .69040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .93227E-01    5.9814        .59223E-01   -1.5647    
  16  norm          .10000E-03    4.2376        .17893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8462        4.5580        .13273E-03   -1.5316    
  18  Prefactor     .10000E-03    37.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9291        96.677        .16559E-03   -1.5221    
  20  Prefactor     .10000E-03    46.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5377        .77300        .25819E-04   -1.5282    
  22  Prefactor     23.486        13.077        .82667E-04   -1.4738    
  23  Prefactor     .10000E-03    48.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .61121        1.3439        .13012E-03   -1.5552    
  25  Normalizat    .74381        .22465        .30116E-03   -1.0219    
  26  Prefactor     1.0721        .19487        .22747E-03   -.90363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55497e-09
Minuit parameter uncertainties:
  1  2.03743e-06
  2  4.46893e-06
  3  2.00572
  4  5.17384e-07
  5  1.35896e-05
  6  2.93798e-06
  7  9.35914
  8  15.9219
  9  6.98289e-06
  10  31.3721
  11  12.2638
  12  2.77245
  13  1.47295e-06
  14  0.0193929
  15  1.49285
  16  2.70359e-05
  17  4.55837
  18  7.17759e-05
  19  47.975
  20  3.03091e-05
  21  0.773
  22  13.0786
  23  2.18937e-05
  24  1.34397
  25  0.224932
  26  0.194997
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.359e-05  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.072e+00  1.950e-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:  7.438e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186499/likelihoodResults_259027201_259286401_4FGL_J1156.6+0640_daily_bin76.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): 102
logL (Free Index) = 6185.90349726
delta logL = -0.000113670311293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6185.90338438
delta logL = -7.93733306637e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11378E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6544       1.0000          .0000       10.000    
     3 'Normalizat'    .74379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0721       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=   6185.903     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      276 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10327E-03    12.910        .18142E-01** at limit **
   2  Index         2.5687        6.8452        .50000        .88302E-05
   3  Normalizat    .74382        .29151E-02    .30115E-03    .13032E-03
   4  Prefactor     1.0721        .26181E-02    .22747E-03    .26739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103269
  Index      = 2.56873
  Normalizat = 0.743815
  Prefactor  = 1.0721
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.903     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10327E-03    114.36        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5687        7.9218        .50000       -.50780    
   3  Normalizat    .74382        .87004E-02    .12046E-04   -1.0219    
   4  Prefactor     1.0721        .78138E-02    .90987E-05   -.90363    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66268e-09
Minuit parameter uncertainties:
  1  0.0387455
  2  316.759
  3  0.00870038
  4  0.00781383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186499': 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): 102
logL (Free Index) = 6185.903384
delta logL = -4.14403075411e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.033e-04  3.875e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.569e+00  3.168e+02  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.072e+00  7.814e-03  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:  7.438e-01  8.700e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/186499/cmap_HighResolution_259027201_259286401_4FGL_J1156.6+0640_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-09-04 17:16:33.986207', job_id='186499', GAL2='1.07', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630800993.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-4.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='76' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 186499: <4FGL_J1156.6+0640_daily_bin76> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin76> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:18 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:20 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:20 2021
Terminated at Sat Sep  4 17:16:34 2021
Results reported at Sat Sep  4 17:16:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin76 179.164 6.6728 259027201 259286401 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 :                                   724.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

