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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin423
RA = 179.164, Dec = 6.6728
tmin = 348969601, tmax = 349228801
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='188045', job_status='RUN', time_executed='2021-09-04 17:09:11.909723', time_epoch_executed='1630800551.91' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188045/ft1_4FGL_J1156.6+0640_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188045/ft2_4FGL_J1156.6+0640_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188045/ft1_4FGL_J1156.6+0640_daily_bin423.fits outfile=/scratch/kocevski/188045/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin423.fits ra=179.164 dec=6.6728 rad=12.0 tmin=348969601.0 tmax=349228801.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.85
user 3.61
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188045/ft1_filtered_4FGL_J1156.6+0640_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/188045/ft2_4FGL_J1156.6+0640_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/188045/ltcube_348969601_349228801_4FGL_J1156.6+0640_daily_bin423.fits outfile=/scratch/kocevski/188045/expmap_348969601_349228801_4FGL_J1156.6+0640_daily_bin423.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/188045/ltcube_348969601_349228801_4FGL_J1156.6+0640_daily_bin423.fits
.....................!
real 191.68
user 186.20
sys 5.14

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/188045/ft1_filtered_4FGL_J1156.6+0640_daily_bin423.fits scfile=/scratch/kocevski/188045/ft2_4FGL_J1156.6+0640_daily_bin423.fits outfile=/scratch/kocevski/188045/cmap_348969601_349228801_4FGL_J1156.6+0640_daily_bin423.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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188045/ft1_filtered_4FGL_J1156.6+0640_daily_bin423.fits scfile=/scratch/kocevski/188045/ft2_4FGL_J1156.6+0640_daily_bin423.fits outfile=/scratch/kocevski/188045/cmap_HighResolution_348969601_349228801_4FGL_J1156.6+0640_daily_bin423.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/188045/ft1_filtered_4FGL_J1156.6+0640_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/188045/ft2_4FGL_J1156.6+0640_daily_bin423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/188045/Model_4FGL_J1156.6+0640_daily_bin423.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/188045/ft1_filtered_4FGL_J1156.6+0640_daily_bin423.fits.....................!
real 63.28
user 61.88
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5326       1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52061       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    191.83       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.037       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.893       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4875       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.244       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.896       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.064       1.0000         .10000E-03   10000.    
    19 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26471E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3143       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5657       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12752E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8666       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75922       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0240       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=   6999.689     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3135 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5314        13.018       -.13702E-05    .12247E-04
   2  Prefactor     55.384        39.484        .17112E-06    .71424E-04
   3  Prefactor     .51957        1.1330        .93675E-06    .17248E-02
   4  Prefactor     .10000E-03    5.6914        .83832E-07** at limit **
   5  Prefactor     .10000E-03    25.175       -.16222E-06** at limit **
   6  Prefactor     .10000E-03    3.0739       -.22322E-05** at limit **
   7  Prefactor     .10000E-03    2.5083        .15789E-06** at limit **
   8  Prefactor     1.8619        45.698       -.37098E-04   -.17665E-04
   9  Prefactor     191.26        128.03       -.24672E-05   -.27678E-05
  10  Prefactor     28.051        33.704       -.82215E-06    .44508E-04
  11  Prefactor     33.898        19.491       -.11807E-05    .11133E-04
  12  Prefactor     .10000E-03    1.8712        .42871E-07** at limit **
  13  Prefactor     1.4879        2.3984        .31871E-06    .10827E-03
  14  Prefactor     22.243        19.160       -.57813E-07    .12608E-04
  15  Prefactor     .10000E-03    2.4994        .65350E-07** at limit **
  16  norm          .10000E-03    .45203        .36767E-07** at limit **
  17  norm          20.893        4.8200       -.22904E-06    .16574E-03
  18  Prefactor     22.052        26.377       -.73227E-06    .10653E-04
  19  norm          .10000E-03    50.416       -.19411E-05** at limit **
  20  Prefactor     .10000E-03    186.50       -.24535E-05** at limit **
  21  norm          1.3143        .56732       -.10595E-06   -.48900E-04
  22  Prefactor     8.5711        8.7827        .84161E-06   -.24118E-04
  23  Prefactor     .10000E-03    89.881        .82021E-05** at limit **
  24  norm          1.8665        1.4061       -.12318E-06   -.28457E-04
  25  Normalizat    .75887        .19810        .12064E-04   -.11794E-03
  26  Prefactor     1.0243        .15925       -.44170E-05    .64024E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.53142
  Prefactor  = 55.3838
  Prefactor  = 0.519573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8619
  Prefactor  = 191.264
  Prefactor  = 28.0514
  Prefactor  = 33.8975
  Prefactor  = 0.0001
  Prefactor  = 1.48793
  Prefactor  = 22.2429
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.8927
  Prefactor  = 22.0524
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31431
  Prefactor  = 8.57114
  Prefactor  = 0.000100003
  norm       = 1.86647
  Normalizat = 0.758868
  Prefactor  = 1.02427
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.689     FROM HESSE     STATUS=OK           460 CALLS     3595 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5314        13.004        .13723E-03   -1.5124    
   2  Prefactor     55.384        39.548        .53905E-04   -1.4218    
   3  Prefactor     .51957        .89605        .12818E-02   -1.5564    
   4  Prefactor     .10000E-03    5.6938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0724        .14306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5164        .12934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8619        45.477        .31034E-03   -1.5435    
   9  Prefactor     191.26        128.27        .14581E-03   -1.2933    
  10  Prefactor     28.051        33.767        .75662E-04   -1.4648    
  11  Prefactor     33.898        19.488        .68832E-04   -1.4543    
  12  Prefactor     .10000E-03    1.9025        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4879        2.3690        .15864E-03   -1.5464    
  14  Prefactor     22.243        19.159        .84928E-04   -1.4764    
  15  Prefactor     .10000E-03    2.5032        .12916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .45353        .54922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.893        4.8153        .78633E-04   -1.4793    
  18  Prefactor     22.052        26.372        .85272E-04   -1.4768    
  19  norm          .10000E-03    50.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    187.24        .21442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3143        .56116        .37441E-04   -1.5479    
  22  Prefactor     8.5711        8.7611        .13697E-03   -1.5122    
  23  Prefactor     .10000E-03    91.717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8665        1.3947        .82265E-04   -1.5435    
  25  Normalizat    .75887        .22128        .30268E-03   -1.0161    
  26  Prefactor     1.0243        .18237        .23076E-03   -.91925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89611e-09
Minuit parameter uncertainties:
  1  13.0082
  2  39.5668
  3  0.896077
  4  1.12918e-05
  5  1.23569e-05
  6  2.06665e-05
  7  1.12e-05
  8  18.4189
  9  128.458
  10  33.7904
  11  19.4921
  12  6.30378e-06
  13  2.36919
  14  19.1644
  15  4.42057e-06
  16  7.98029e-07
  17  4.81538
  18  26.3856
  19  4.42541e-05
  20  0.000340809
  21  0.561164
  22  8.76243
  23  0.000988454
  24  1.39473
  25  0.221545
  26  0.182476
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.236e-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.024e+00  1.825e-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.589e-01  2.215e-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: 4.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188045/likelihoodResults_348969601_349228801_4FGL_J1156.6+0640_daily_bin423.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) = 6999.68880055
delta logL = -0.000189128828424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6999.68861283
delta logL = -1.4063598428e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8819       1.0000          .0000       10.000    
     3 'Normalizat'    .75887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       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=   6999.689     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10517E-03    5.4870        .18142E-01** at limit **
   2  Index         2.7617        6.4242        .50000        .14811E-04
   3  Normalizat    .75888        .24869E-02    .30266E-03   -.65509E-04
   4  Prefactor     1.0243        .21887E-02    .23076E-03    .70106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105167
  Index      = 2.7617
  Normalizat = 0.758875
  Prefactor  = 1.02426
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10517E-03    84.622        .33460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7617        7.5985        .50000       -.46415    
   3  Normalizat    .75888        .98098E-02    .12106E-04   -1.0161    
   4  Prefactor     1.0243        .86338E-02    .92304E-05   -.91925    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36815e-09
Minuit parameter uncertainties:
  1  0.0418818
  2  380.001
  3  0.00980985
  4  0.00863379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188045': 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) = 6999.68861256
delta logL = -1.13999340101e-06

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.052e-04  4.188e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.762e+00  3.800e+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.024e+00  8.634e-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.589e-01  9.810e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/188045/cmap_HighResolution_348969601_349228801_4FGL_J1156.6+0640_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.54e-08', time_completed='2021-09-04 17:22:57.766308', job_id='188045', GAL2='1.02', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630801377.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='423' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:22:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 188045: <4FGL_J1156.6+0640_daily_bin423> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin423> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:29 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:31 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:06:31 2021
Terminated at Sat Sep  4 17:22:58 2021
Results reported at Sat Sep  4 17:22:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin423 179.164 6.6728 348969601 349228801 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 :                                   825.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

