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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1361
RA = 29.2165, Dec = -47.7352
tmin = 592099201, tmax = 592358401
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='938000', job_status='RUN', time_executed='2021-08-14 21:42:09.890974', time_epoch_executed='1629002529.89' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938000/ft1_4FGL_J0156.8-4744_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938000/ft1_4FGL_J0156.8-4744_daily_bin1361.fits outfile=/scratch/kocevski/938000/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1361.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=592099201.0 tmax=592358401.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 4.10
user 3.28
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.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/938000/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1361.fits evtable="EVENTS" outfile="/scratch/kocevski/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.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 1.17
user 0.33
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/938000/ltcube_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.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/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits
.....................!
real 14.02
user 12.90
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/938000/ltcube_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.fits outfile=/scratch/kocevski/938000/expmap_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.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/938000/ltcube_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.fits
.....................!
real 194.91
user 188.14
sys 6.34

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/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.fits scfile=/scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits outfile=/scratch/kocevski/938000/cmap_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.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 1.14
user 0.38
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.fits scfile=/scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits outfile=/scratch/kocevski/938000/cmap_HighResolution_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.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 1.20
user 0.39
sys 0.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938000/Model_4FGL_J0156.8-4744_daily_bin1361.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/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.fits.....................!
real 120.63
user 118.20
sys 2.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.fits', '/scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits', expMap='/scratch/kocevski/938000/expmap_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.fits', expCube='/scratch/kocevski/938000/ltcube_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938000/Model_4FGL_J0156.8-4744_daily_bin1361.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/938000/ft1_filtered_4FGL_J0156.8-4744_daily_bin1361.fits
Spacecraft file(s): /scratch/kocevski/938000/ft2_4FGL_J0156.8-4744_daily_bin1361.fits
Exposure map: /scratch/kocevski/938000/expmap_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.fits
Exposure cube: /scratch/kocevski/938000/ltcube_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938000/Model_4FGL_J0156.8-4744_daily_bin1361.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) = 6259.89020074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2606       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7642       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9747       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33441E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.735       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11707E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1400       1.0000         .10000E-03   10000.    
    14 'norm      '    21.993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9391       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7936       1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.138       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3779       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .29181E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64783       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0910       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6259.861     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2528 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    61.999        .71130E-05** at limit **
   2  Prefactor     9.2567        17.052        .72558E-06   -.16164E-03
   3  Prefactor     .10000E-03    6.9854        .16651E-06** at limit **
   4  norm          13.249        8.3290       -.58439E-07   -.83045E-04
   5  Prefactor     .10000E-03    9.8937       -.11021E-05** at limit **
   6  Prefactor     1.7642        3.7618        .26810E-06   -.21298E-03
   7  Prefactor     2.9743        4.2270        .13461E-06   -.12692E-03
   8  Prefactor     .10016E-03    6.3415       -.21215E-05** at limit **
   9  norm          .10002E-03    22.077        .83178E-05** at limit **
  10  norm          3.7975        3.8296        .24781E-05   -.21672E-02
  11  Prefactor     11.732        13.669       -.11054E-07   -.46232E-05
  12  Prefactor     .10001E-03    35.406       -.61882E-05** at limit **
  13  Prefactor     3.1400        3.2009       -.15428E-07    .59153E-04
  14  norm          21.993        2.8149        .26759E-07    .66079E-03
  15  Prefactor     .10000E-03    10.281        .13344E-05** at limit **
  16  Prefactor     .10000E-03    4.9972       -.58092E-09** at limit **
  17  Prefactor     2.9406        7.6639        .55501E-06   -.15601E-06
  18  norm          2.7934        1.7433        .96971E-08   -.35318E-04
  19  Prefactor     54.142        14.995        .78687E-07    .15994E-03
  20  Prefactor     .10001E-03    20.751       -.57613E-05** at limit **
  21  norm          .10000E-03    .32598        .22922E-07** at limit **
  22  Prefactor     9.3927        5.6375        .33542E-06    .44006E-03
  23  Prefactor     .10000E-03    42.989       -.34700E-05** at limit **
  24  Normalizat    .64782        .16074       -.21607E-06    .21259E-03
  25  Prefactor     1.0911        .17693       -.25096E-06    .21544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 9.25667
  Prefactor  = 0.0001
  norm       = 13.2491
  Prefactor  = 0.0001
  Prefactor  = 1.76424
  Prefactor  = 2.9743
  Prefactor  = 0.000100158
  norm       = 0.00010002
  norm       = 3.79745
  Prefactor  = 11.732
  Prefactor  = 0.000100009
  Prefactor  = 3.13996
  norm       = 21.9929
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.94056
  norm       = 2.79344
  Prefactor  = 54.1423
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 9.39271
  Prefactor  = 0.000100003
  Normalizat = 0.647816
  Prefactor  = 1.09108
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.861     FROM HESSE     STATUS=OK           435 CALLS     2963 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    63.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2567        17.084        .65849E-03   -1.5099    
   3  Prefactor     .10000E-03    6.9974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.249        8.3369        .11003E-03   -1.4980    
   5  Prefactor     .10000E-03    9.9311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7642        3.7367        .21590E-03   -1.5442    
   7  Prefactor     2.9743        4.2193        .18792E-03   -1.5363    
   8  Prefactor     .10016E-03    8.8250        .55211E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    23.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7975        4.6238        .84631E-03   -1.5318    
  11  Prefactor     11.732        13.701        .11694E-03   -1.5023    
  12  Prefactor     .10001E-03    36.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1400        3.2043        .13811E-03   -1.5354    
  14  norm          21.993        2.8146        .44769E-04   -1.4770    
  15  Prefactor     .10000E-03    10.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0043        .17208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9406        7.6115        .23692E-03   -1.5365    
  18  norm          2.7934        1.7410        .79644E-04   -1.5374    
  19  Prefactor     54.142        14.991        .54514E-04   -1.4235    
  20  Prefactor     .10001E-03    21.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .33613        .88055E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.3927        5.6352        .13087E-03   -1.5095    
  23  Prefactor     .10000E-03    44.961        .39716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64782        .19076        .27941E-03   -1.0599    
  25  Prefactor     1.0911        .21101        .24756E-03   -.89752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1859e-09
Minuit parameter uncertainties:
  1  0.00187813
  2  17.0931
  3  1.55327e-05
  4  8.33768
  5  0.00011637
  6  3.73722
  7  4.21975
  8  0.00235946
  9  0.00136755
  10  4.62418
  11  13.7047
  12  0.00117963
  13  3.20443
  14  2.81459
  15  0.000144716
  16  1.28661e-05
  17  7.61402
  18  1.74106
  19  14.9921
  20  0.000902661
  21  1.3672e-07
  22  5.63556
  23  0.000777781
  24  0.190952
  25  0.211173
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.002e-04  2.359e-03  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:  1.091e+00  2.112e-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:  6.478e-01  1.910e-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: 6.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938000/likelihoodResults_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.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) = 6259.86146469
delta logL = -2.93484445137e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6259.4671783
delta logL = 0.394257038392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.9061       1.0000          .0000       10.000    
     3 'Normalizat'    .60774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1203       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=   6259.467     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      374 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .36313E-02    .38793E-03** at limit **
   2  Index         6.9055        2.6555        .10813        .13236E-03
   3  Normalizat    .60770        .33705E-01    .64902E-01    .21568E-03
   4  Prefactor     1.1203        .37791E-01    .55306E-01    .30127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.90552
  Normalizat = 0.607697
  Prefactor  = 1.12033
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.467     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      413 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .27652E-01    .19773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9055        7.9060        .60205E-02    .39099    
   3  Normalizat    .60770        .76408E-01    .28719E-03   -1.0766    
   4  Prefactor     1.1203        .85785E-01    .24453E-03   -.88819    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.93448e-07
Minuit parameter uncertainties:
  1  2.21347e-07
  2  5.95268
  3  0.0764217
  4  0.0857957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938000': 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) = 6259.46717712
delta logL = 0.394258218442

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.213e-07  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  6.906e+00  5.953e+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:  1.120e+00  8.580e-02  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:  6.077e-01  7.642e-02  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/938000/cmap_HighResolution_592099201_592358401_4FGL_J0156.8-4744_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2021-08-14 21:55:43.879714', job_id='938000', GAL2='1.12', fit_tolerance='1e-08', EG2='0.61', EG='0.65', time_epoch_completed='1629003343.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.94e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1361' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:55:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 938000: <4FGL_J0156.8-4744_daily_bin1361> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1361> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 21:40:20 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:40:37 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:40:37 2021
Terminated at Sat Aug 14 21:55:44 2021
Results reported at Sat Aug 14 21:55:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1361 29.2165 -47.7352 592099201 592358401 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 :                                   818.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            924 sec.

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

