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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1107
RA = 29.2165, Dec = -47.7352
tmin = 526262401, tmax = 526521601
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='936510', job_status='RUN', time_executed='2021-08-14 21:37:28.832724', time_epoch_executed='1629002248.83' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936510/ft1_4FGL_J0156.8-4744_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936510/ft2_4FGL_J0156.8-4744_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936510/ft1_4FGL_J0156.8-4744_daily_bin1107.fits outfile=/scratch/kocevski/936510/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1107.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=526262401.0 tmax=526521601.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 7.10
user 3.80
sys 3.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936510/ft1_filtered_4FGL_J0156.8-4744_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/936510/ft2_4FGL_J0156.8-4744_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/936510/ltcube_526262401_526521601_4FGL_J0156.8-4744_daily_bin1107.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/936510/ft2_4FGL_J0156.8-4744_daily_bin1107.fits
.....................!
real 18.33
user 14.49
sys 3.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936510/ft1_filtered_4FGL_J0156.8-4744_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/936510/ft2_4FGL_J0156.8-4744_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/936510/ltcube_526262401_526521601_4FGL_J0156.8-4744_daily_bin1107.fits outfile=/scratch/kocevski/936510/expmap_526262401_526521601_4FGL_J0156.8-4744_daily_bin1107.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/936510/ltcube_526262401_526521601_4FGL_J0156.8-4744_daily_bin1107.fits
.....................!
real 197.71
user 188.35
sys 8.66

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/936510/ft1_filtered_4FGL_J0156.8-4744_daily_bin1107.fits scfile=/scratch/kocevski/936510/ft2_4FGL_J0156.8-4744_daily_bin1107.fits outfile=/scratch/kocevski/936510/cmap_526262401_526521601_4FGL_J0156.8-4744_daily_bin1107.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 3.61
user 0.39
sys 3.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936510/ft1_filtered_4FGL_J0156.8-4744_daily_bin1107.fits scfile=/scratch/kocevski/936510/ft2_4FGL_J0156.8-4744_daily_bin1107.fits outfile=/scratch/kocevski/936510/cmap_HighResolution_526262401_526521601_4FGL_J0156.8-4744_daily_bin1107.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 3.56
user 0.39
sys 3.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936510/ft1_filtered_4FGL_J0156.8-4744_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/936510/ft2_4FGL_J0156.8-4744_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936510/Model_4FGL_J0156.8-4744_daily_bin1107.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/936510/ft1_filtered_4FGL_J0156.8-4744_daily_bin1107.fits.....................!
real 98.09
user 92.50
sys 5.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    19.511       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.590       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.770       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2030       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12834E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0158       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3352       1.0000         .10000E-03   10000.    
    20 'Prefactor '    112.23       1.0000         .10000E-03   10000.    
    21 'norm      '    2.8357       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.529       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0085       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89654       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=   4755.890     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2825 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.211       -.11635E-04** at limit **
   2  Prefactor     .10000E-03    6.5709       -.81984E-06** at limit **
   3  Prefactor     .10000E-03    20.891       -.76692E-05** at limit **
   4  norm          19.514        10.266       -.10706E-06   -.29507E-03
   5  Prefactor     .10000E-03    29.817        .25054E-04** at limit **
   6  Prefactor     1.6411        3.9665       -.54369E-06   -.59090E-03
   7  Prefactor     10.591        6.3440       -.19877E-07   -.10606E-04
   8  Prefactor     .10000E-03    7.4194        .25925E-05** at limit **
   9  norm          15.768        50.695       -.53218E-05   -.27778E-05
  10  norm          .10000E-03    1.5854        .13801E-06** at limit **
  11  Prefactor     6.9700        8.2469       -.14060E-07   -.10711E-04
  12  Prefactor     .10000E-03    10.408        .26304E-05** at limit **
  13  Prefactor     2.2028        5.2861        .69743E-06   -.47230E-03
  14  norm          4.2409        1.9238       -.44166E-07   -.33295E-04
  15  Prefactor     .10000E-03    24.110        .79020E-05** at limit **
  16  Prefactor     .10000E-03    41.460       -.20518E-04** at limit **
  17  Prefactor     .10000E-03    8.9289       -.64875E-05** at limit **
  18  norm          1.0161        2.0009       -.34500E-06   -.85288E-03
  19  Prefactor     5.3195        13.006        .90321E-06    .78532E-04
  20  Prefactor     112.23        74.142       -.42904E-06    .15147E-04
  21  norm          2.8354        1.4549       -.49567E-07    .35925E-03
  22  Prefactor     15.530        7.3663       -.33747E-07   -.60277E-04
  23  Prefactor     .10000E-03    10.964        .40703E-05** at limit **
  24  Normalizat    1.0082        .19055       -.13060E-06    .79174E-04
  25  Prefactor     .89676        .20497       -.12460E-06    .29892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5137
  Prefactor  = 0.0001
  Prefactor  = 1.64107
  Prefactor  = 10.5905
  Prefactor  = 0.0001
  norm       = 15.7677
  norm       = 0.0001
  Prefactor  = 6.97001
  Prefactor  = 0.0001
  Prefactor  = 2.2028
  norm       = 4.24091
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.01609
  Prefactor  = 5.31955
  Prefactor  = 112.23
  norm       = 2.83543
  Prefactor  = 15.5298
  Prefactor  = 0.0001
  Normalizat = 1.00817
  Prefactor  = 0.896761
 **********
 **   18 **HESSE 
 **********

 FCN=   4755.890     FROM HESSE     STATUS=OK           425 CALLS     3250 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5717        .17266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          19.514        10.281        .45337E-03   -1.4824    
   5  Prefactor     .10000E-03    29.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6411        3.9448        .20728E-03   -1.5452    
   7  Prefactor     10.591        6.3446        .12312E-03   -1.5057    
   8  Prefactor     .10000E-03    7.5335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.768        50.749        .10086E-03   -1.4914    
  10  norm          .10000E-03    1.5876        .84797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9700        8.2459        .15196E-03   -1.5180    
  12  Prefactor     .10000E-03    10.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2028        5.2379        .22702E-03   -1.5411    
  14  norm          4.2409        1.9163        .59361E-04   -1.5296    
  15  Prefactor     .10000E-03    24.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0161        1.9647        .13078E-03   -1.5506    
  19  Prefactor     5.3195        12.964        .17400E-03   -1.5247    
  20  Prefactor     112.23        74.182        .37972E-04   -1.3585    
  21  norm          2.8354        1.4507        .55870E-04   -1.5371    
  22  Prefactor     15.530        7.3589        .10164E-03   -1.4920    
  23  Prefactor     .10000E-03    11.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0082        .22414        .23107E-03   -.92757    
  25  Prefactor     .89676        .24057        .26327E-03   -.96254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01834e-09
Minuit parameter uncertainties:
  1  2.53322e-06
  2  9.28064e-08
  3  3.63772e-05
  4  10.2817
  5  5.88818e-05
  6  3.9454
  7  6.34505
  8  5.66074e-06
  9  50.8885
  10  1.21158e-07
  11  8.2472
  12  2.50855e-06
  13  5.23898
  14  1.91629
  15  2.94897e-06
  16  0.000413639
  17  1.4472e-05
  18  1.96484
  19  12.9712
  20  74.2431
  21  1.45072
  22  7.35932
  23  3.78464e-06
  24  0.224351
  25  0.240856
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  5.661e-06  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:  8.968e-01  2.409e-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.008e+00  2.244e-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: 7.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936510/likelihoodResults_526262401_526521601_4FGL_J0156.8-4744_daily_bin1107.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) = 4755.89099847
delta logL = -0.000632626019069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4755.89036605
delta logL = -2.07770426641e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2014       1.0000          .0000       10.000    
     3 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89686       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=   4755.890     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2769        .90712E-02** at limit **
   2  Index         2.2097        5.5384        .50000       -.90176E-05
   3  Normalizat    1.0082        .34838E-02    .46268E-01    .36424E-04
   4  Prefactor     .89676        .37854E-02    .44965E-01    .33662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20968
  Normalizat = 1.00817
  Prefactor  = 0.896761
 **********
 **   18 **HESSE 
 **********

 FCN=   4755.890     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2097        6.6134        .50000       -.59205    
   3  Normalizat    1.0082        .11794E-01    .23107E-03   -.92757    
   4  Prefactor     .89676        .12815E-01    .26327E-03   -.96254    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56051e-07
Minuit parameter uncertainties:
  1  6.89831e-05
  2  179.663
  3  0.0117942
  4  0.0128152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936510': 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) = 4755.89036581
delta logL = 3.77594915335e-08

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  6.898e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.210e+00  1.797e+02  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:  8.968e-01  1.282e-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:  1.008e+00  1.179e-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/936510/cmap_HighResolution_526262401_526521601_4FGL_J0156.8-4744_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-08-14 21:49:49.280473', job_id='936510', GAL2='0.90', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1629002989.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1107' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 936510: <4FGL_J0156.8-4744_daily_bin1107> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1107> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 21:35:23 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:35:25 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:35:25 2021
Terminated at Sat Aug 14 21:49:50 2021
Results reported at Sat Aug 14 21:49:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1107 29.2165 -47.7352 526262401 526521601 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 :                                   777.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

