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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1186
RA = 29.2165, Dec = -47.7352
tmin = 546739201, tmax = 546998401
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='936646', job_status='RUN', time_executed='2021-08-14 21:39:50.067056', time_epoch_executed='1629002390.07' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936646/ft1_4FGL_J0156.8-4744_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936646/ft1_4FGL_J0156.8-4744_daily_bin1186.fits outfile=/scratch/kocevski/936646/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1186.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=546739201.0 tmax=546998401.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 12.84
user 3.40
sys 9.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.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/936646/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1186.fits evtable="EVENTS" outfile="/scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.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 9.68
user 0.34
sys 9.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.fits" evtable="EVENTS" scfile=/scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits sctable="SC_DATA" outfile=/scratch/kocevski/936646/ltcube_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.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/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits
.....................!
real 23.87
user 13.47
sys 10.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/936646/ltcube_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.fits outfile=/scratch/kocevski/936646/expmap_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.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/936646/ltcube_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.fits
.....................!
real 203.07
user 186.48
sys 15.76

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 187 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0156.8-4744 @ 29.2165 -47.7352

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.fits scfile=/scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits outfile=/scratch/kocevski/936646/cmap_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.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=29.2165 yref=-47.7352 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 9.52
user 0.38
sys 9.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.fits scfile=/scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits outfile=/scratch/kocevski/936646/cmap_HighResolution_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.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=29.2165 yref=-47.7352 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 9.46
user 0.40
sys 8.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936646/Model_4FGL_J0156.8-4744_daily_bin1186.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.fits.....................!
real 71.83
user 57.94
sys 13.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.fits', '/scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits', expMap='/scratch/kocevski/936646/expmap_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.fits', expCube='/scratch/kocevski/936646/ltcube_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/936646/Model_4FGL_J0156.8-4744_daily_bin1186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.8-4744'

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/936646/ft1_filtered_4FGL_J0156.8-4744_daily_bin1186.fits
Spacecraft file(s): /scratch/kocevski/936646/ft2_4FGL_J0156.8-4744_daily_bin1186.fits
Exposure map: /scratch/kocevski/936646/expmap_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.fits
Exposure cube: /scratch/kocevski/936646/ltcube_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/936646/Model_4FGL_J0156.8-4744_daily_bin1186.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) = 2546.55267807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    129.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.447       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    92.393       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7321       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7054       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2802       1.0000         .10000E-03   10000.    
    15 'Prefactor '    112.35       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.586       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.780       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5407       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9260       1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.593       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4025       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69845E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2546.534     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3281 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     129.80        101.43        .88350E-03    .45713E-04
   2  Prefactor     .10000E-03    15.028        .90712E-02** at limit **
   3  Prefactor     .10000E-03    11.577        .90712E-02** at limit **
   4  norm          4.0921        11.530        .49823E-02    .11873E-03
   5  Prefactor     14.447        41.217        .26344E-02    .93050E-04
   6  Prefactor     10.409        9.4125        .31047E-02    .62997E-04
   7  Prefactor     .10000E-03    7.7562        .90712E-02** at limit **
   8  Prefactor     .10000E-03    5.0163        .90712E-02** at limit **
   9  norm          92.393        98.276        .10452E-02    .17120E-04
  10  norm          5.7321        6.2118        .41941E-02    .62735E-04
  11  Prefactor     .10000E-03    6.3362        .90712E-02** at limit **
  12  Prefactor     .10000E-03    25.802        .90712E-02** at limit **
  13  Prefactor     5.7054        5.6007        .42041E-02   -.23680E-04
  14  norm          7.2802        2.7276        .37164E-02    .42915E-05
  15  Prefactor     112.35        102.65        .94877E-03    .38794E-03
  16  Prefactor     .10000E-03    4.4948        .90712E-02** at limit **
  17  Prefactor     .10000E-03    7.0566        .90712E-02** at limit **
  18  norm          18.586        5.5721        .23226E-02   -.36406E-04
  19  Prefactor     13.779        17.330        .26975E-02    .55154E-03
  20  Prefactor     .10000E-03    90.022        .90712E-02** at limit **
  21  norm          2.5407        1.5154        .64051E-02   -.26261E-04
  22  Prefactor     8.9259        10.308        .33539E-02    .25667E-04
  23  Prefactor     57.593        30.650        .13216E-02    .32565E-04
  24  Normalizat    1.4026        1.7067        .31183E-01   -.46886E-05
  25  Prefactor     .69822E-01    8.3279        .17622        .57410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 129.798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.09208
  Prefactor  = 14.4471
  Prefactor  = 10.4092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 92.3931
  norm       = 5.73205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.70541
  norm       = 7.28021
  Prefactor  = 112.354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5862
  Prefactor  = 13.7794
  Prefactor  = 0.0001
  norm       = 2.54072
  Prefactor  = 8.9259
  Prefactor  = 57.5934
  Normalizat = 1.40255
  Prefactor  = 0.0698219
 **********
 **   18 **HESSE 
 **********

 FCN=   2546.534     FROM HESSE     STATUS=OK           427 CALLS     3708 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     129.80        100.50        .35340E-04   -1.3424    
   2  Prefactor     .10000E-03    15.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.200        .17213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0921        10.435        .19929E-03   -1.5303    
   5  Prefactor     14.447        42.670        .10538E-03   -1.4948    
   6  Prefactor     10.409        9.6825        .12419E-03   -1.5063    
   7  Prefactor     .10000E-03    8.2841        .14068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2941        .11325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          92.393        88.640        .41808E-04   -1.3783    
  10  norm          5.7321        6.1391        .12516E-03   -1.5229    
  11  Prefactor     .10000E-03    6.6807        .12735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7054        5.7166        .11634E-03   -1.5230    
  14  norm          7.2802        2.8005        .49591E-04   -1.5168    
  15  Prefactor     112.35        89.712        .18975E-03   -1.3584    
  16  Prefactor     .10000E-03    4.7365        .10726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4351        .13440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.586        5.4005        .60238E-04   -1.4845    
  19  Prefactor     13.779        16.357        .53951E-03   -1.4965    
  20  Prefactor     .10000E-03    94.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5407        1.5275        .45525E-04   -1.5389    
  22  Prefactor     8.9259        9.0038        .13416E-03   -1.5110    
  23  Prefactor     57.593        31.190        .52862E-04   -1.4189    
  24  Normalizat    1.4026        .30356        .18802E-03   -.80555    
  25  Prefactor     .69822E-01    .29900        .72969E-02   -1.4035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67008e-09
Minuit parameter uncertainties:
  1  100.628
  2  6.75207e-07
  3  3.91471e-08
  4  10.44
  5  42.76
  6  9.68394
  7  4.26724e-07
  8  1.87031e-07
  9  88.7673
  10  6.13975
  11  7.19391e-07
  12  1.75967e-06
  13  5.71714
  14  2.80058
  15  89.8204
  16  5.84079e-08
  17  8.48455e-07
  18  5.40066
  19  16.3627
  20  2.92022e-06
  21  1.52754
  22  9.00513
  23  31.1985
  24  0.303948
  25  0.291485
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.870e-07  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.982e-02  2.915e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.403e+00  3.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.216 -47.735
Photon Flux Upper Limit: 8.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936646/likelihoodResults_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.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) = 2546.53475244
delta logL = -0.000872524885381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2546.53387993
delta logL = -1.6027570382e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1817       1.0000          .0000       10.000    
     3 'Normalizat'    1.4025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69906E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2546.534     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    189.40        .90712E-02** at limit **
   2  Index         2.1701        5.6759        .50000        .17931E-04
   3  Normalizat    1.4026        .36712E-01    .31184E-01   -.13154E-04
   4  Prefactor     .69822E-01    .33932E-01    .17622        .56692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17012
  Normalizat = 1.40255
  Prefactor  = 0.069822
 **********
 **   18 **HESSE 
 **********

 FCN=   2546.534     FROM HESSE     STATUS=OK            35 CALLS      243 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.212        .11388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1701        5.6427        .50000       -.60162    
   3  Normalizat    1.4026        .27511        .18802E-03   -.80555    
   4  Prefactor     .69822E-01    .26720        .72969E-02   -1.4035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49991e-09
Minuit parameter uncertainties:
  1  2.22835e-05
  2  6.48504
  3  0.275398
  4  0.272007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936646': 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) = 2546.53387981
delta logL = 1.00330453279e-07

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.228e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.170e+00  6.485e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.982e-02  2.720e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.403e+00  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.216 -47.735

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/936646/cmap_HighResolution_546739201_546998401_4FGL_J0156.8-4744_daily_bin1186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.77e-08', time_completed='2021-08-14 21:51:30.788855', job_id='936646', GAL2='0.07', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1629003090.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.07', dlogl='1.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1186' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:51:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 936646: <4FGL_J0156.8-4744_daily_bin1186> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1186> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 21:35:32 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:36:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 21:36:00 2021
Terminated at Sat Aug 14 21:51:33 2021
Results reported at Sat Aug 14 21:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1186 29.2165 -47.7352 546739201 546998401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.8-4744 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   838.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            961 sec.

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

