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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1090
RA = 29.2165, Dec = -47.7352
tmin = 521856001, tmax = 522115201
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='935150', job_status='RUN', time_executed='2021-08-14 21:32:56.527141', time_epoch_executed='1629001976.53' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935150

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935150/ft1_4FGL_J0156.8-4744_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935150/ft2_4FGL_J0156.8-4744_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935150/ft1_4FGL_J0156.8-4744_daily_bin1090.fits outfile=/scratch/kocevski/935150/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1090.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=521856001.0 tmax=522115201.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.41
user 3.56
sys 0.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935150/ft1_filtered_4FGL_J0156.8-4744_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/935150/ft2_4FGL_J0156.8-4744_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/935150/ltcube_521856001_522115201_4FGL_J0156.8-4744_daily_bin1090.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/935150/ft2_4FGL_J0156.8-4744_daily_bin1090.fits
.....................!
real 15.00
user 13.91
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935150/ft1_filtered_4FGL_J0156.8-4744_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/935150/ft2_4FGL_J0156.8-4744_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/935150/ltcube_521856001_522115201_4FGL_J0156.8-4744_daily_bin1090.fits outfile=/scratch/kocevski/935150/expmap_521856001_522115201_4FGL_J0156.8-4744_daily_bin1090.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/935150/ltcube_521856001_522115201_4FGL_J0156.8-4744_daily_bin1090.fits
.....................!
real 195.48
user 189.07
sys 5.09

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/935150/ft1_filtered_4FGL_J0156.8-4744_daily_bin1090.fits scfile=/scratch/kocevski/935150/ft2_4FGL_J0156.8-4744_daily_bin1090.fits outfile=/scratch/kocevski/935150/cmap_521856001_522115201_4FGL_J0156.8-4744_daily_bin1090.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.03
user 0.39
sys 0.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935150/ft1_filtered_4FGL_J0156.8-4744_daily_bin1090.fits scfile=/scratch/kocevski/935150/ft2_4FGL_J0156.8-4744_daily_bin1090.fits outfile=/scratch/kocevski/935150/cmap_HighResolution_521856001_522115201_4FGL_J0156.8-4744_daily_bin1090.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.06
user 0.39
sys 0.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935150/ft1_filtered_4FGL_J0156.8-4744_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/935150/ft2_4FGL_J0156.8-4744_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935150/Model_4FGL_J0156.8-4744_daily_bin1090.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/935150/ft1_filtered_4FGL_J0156.8-4744_daily_bin1090.fits.....................!
real 103.43
user 101.16
sys 1.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99779       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4517       1.0000         .10000E-03   10000.    
     9 'norm      '    21.393       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    71.661       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0113       1.0000         .10000E-03   10000.    
    14 'norm      '    5.0930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5681       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .63335E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14972E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8858       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .47305E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4978       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63922       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=   5201.274     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2947 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.778        .25866E-05** at limit **
   2  Prefactor     .98797        29.985       -.70211E-05    .49343E-03
   3  Prefactor     .10000E-03    5.7333        .16185E-06** at limit **
   4  norm          .10000E-03    3.2801       -.25487E-06** at limit **
   5  Prefactor     2.4875        13.993        .27771E-05   -.20570E-03
   6  Prefactor     .10000E-03    1.5599       -.10204E-06** at limit **
   7  Prefactor     .10000E-03    1.8000        .89963E-08** at limit **
   8  Prefactor     5.4517        6.0025        .28027E-06    .18582E-03
   9  norm          21.384        35.978       -.36376E-05   -.22200E-03
  10  norm          .10000E-03    1.7390        .13268E-06** at limit **
  11  Prefactor     .10000E-03    6.5153       -.91433E-08** at limit **
  12  Prefactor     71.655        32.836       -.52200E-06   -.66727E-04
  13  Prefactor     9.0116        5.9318       -.61228E-07   -.64039E-05
  14  norm          5.0927        2.0016       -.34468E-07    .41131E-04
  15  Prefactor     .10000E-03    20.498       -.77787E-07** at limit **
  16  Prefactor     2.5599        40.189        .18662E-05    .56080E-04
  17  Prefactor     .10001E-03    16.675       -.39256E-05** at limit **
  18  norm          .65733E-01    1.0192       -.29289E-06    .20391E-03
  19  Prefactor     .10001E-03    17.468        .46064E-05** at limit **
  20  Prefactor     .10001E-03    180.03       -.39069E-05** at limit **
  21  norm          1.8856        1.2021        .15163E-06    .10064E-02
  22  Prefactor     .10000E-03    3.6515       -.41591E-06** at limit **
  23  Prefactor     .10000E-03    11.698       -.24819E-06** at limit **
  24  Normalizat    1.4981        .19987       -.31288E-06    .67644E-03
  25  Prefactor     .63885        .20493        .22132E-05    .42371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.987969
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.48748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.4517
  norm       = 21.3837
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.6555
  Prefactor  = 9.01161
  norm       = 5.09269
  Prefactor  = 0.0001
  Prefactor  = 2.55991
  Prefactor  = 0.000100007
  norm       = 0.0657333
  Prefactor  = 0.000100007
  Prefactor  = 0.000100007
  norm       = 1.88558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.49811
  Prefactor  = 0.63885
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.274     FROM HESSE     STATUS=OK           425 CALLS     3372 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .98797        82.837        .54472E-02   -1.5509    
   3  Prefactor     .10000E-03    5.7377        .16866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.2969        .12763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4875        48.018        .12964E-02   -1.5393    
   6  Prefactor     .10000E-03    1.5643        .87983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8027        .94492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4517        5.9984        .17209E-03   -1.5241    
   9  norm          21.384        36.378        .86598E-04   -1.4783    
  10  norm          .10000E-03    1.7404        .92837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5481        .17978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     71.655        32.929        .47423E-04   -1.4013    
  13  Prefactor     9.0116        5.9322        .13352E-03   -1.5107    
  14  norm          5.0927        2.0049        .59891E-04   -1.5257    
  15  Prefactor     .10000E-03    20.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5599        40.288        .25472E-03   -1.5388    
  17  Prefactor     .10001E-03    17.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .65733E-01    6.0044        .13893E-02   -1.5657    
  19  Prefactor     .10001E-03    17.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    183.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8856        1.1990        .60528E-04   -1.5433    
  22  Prefactor     .10000E-03    12.968        .26474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4981        .23794        .21159E-03   -.77832    
  25  Prefactor     .63885        .24258        .32176E-03   -1.0597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16563e-08
Minuit parameter uncertainties:
  1  0.000864528
  2  18.1182
  3  1.40521e-05
  4  2.07152e-05
  5  21.8779
  6  5.40957e-06
  7  4.13244e-07
  8  5.99909
  9  36.4152
  10  6.75071e-06
  11  4.51343e-06
  12  32.9372
  13  5.93261
  14  2.00491
  15  1.7803e-05
  16  20.3269
  17  0.000670587
  18  1.25566
  19  0.000714452
  20  0.00221174
  21  1.19906
  22  7.05295e-05
  23  3.83516e-05
  24  0.238119
  25  0.242981
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  5.452e+00  5.999e+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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.389e-01  2.430e-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.498e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 9.25e-06 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/935150/likelihoodResults_521856001_522115201_4FGL_J0156.8-4744_daily_bin1090.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): 0
logL (Free Index) = 5201.20724329
delta logL = 0.0670186453945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5201.20492895
delta logL = 0.0693329873338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8596       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8815       1.0000          .0000       10.000    
     3 'Normalizat'    1.5048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63441       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=   5201.205     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      273 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8617        347.27        .38297E-02    .34946E-04
   2  Index         1.8814        5.4295        .20281        .30501E-04
   3  Normalizat    1.5048        .11764        .47786E-01   -.28341E-04
   4  Prefactor     .63450        .90248E-01    .72916E-01    .12267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.86169
  Index      = 1.88137
  Normalizat = 1.50478
  Prefactor  = 0.634498
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.205     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8617        7.9858        .15319E-03   -1.5184    
   2  Index         1.8814        .80946        .10803E-01   -.67350    
   3  Normalizat    1.5048        .22873        .21124E-03   -.77644    
   4  Prefactor     .63450        .23797        .32277E-03   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83226e-10
Minuit parameter uncertainties:
  1  7.98707
  2  0.815363
  3  0.228884
  4  0.238347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935150': 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) = 5201.20492882
delta logL = 0.0693331198654

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  6.862e+00  7.987e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.881e+00  8.154e-01  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.345e-01  2.383e-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.505e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 1.88 +/- 0.82
Photon Flux (Free Index): 1.45e-08 +/- 2.16e-08
Energy Flux (Free Index): 1.37e-05 +/- 2.33e-05

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/935150/cmap_HighResolution_521856001_522115201_4FGL_J0156.8-4744_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='1.37e-05', photon_flux_error='2.23e-08', dlogl='6.93e-02', energy_flux='9.25e-06', photon_flux2='1.45e-08', job_status='DONE', time_completed='2021-08-14 21:45:31.052184', photon_index_error2='0.82', photon_index2='1.88', ts='1.55', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='8.30e-08', energy_flux_error2='2.33e-05', EG='1.50', time_epoch_completed='1629002731.05', return_code='0', job_id='935150', GAL2='0.63', EG2='1.50', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='2.16e-08', ts2='1.69', photon_index='2.19' WHERE bin_id='1090' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 935150: <4FGL_J0156.8-4744_daily_bin1090> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1090> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 21:30:24 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:31:06 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:31:06 2021
Terminated at Sat Aug 14 21:45:31 2021
Results reported at Sat Aug 14 21:45:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1090 29.2165 -47.7352 521856001 522115201 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 :                                   758.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            907 sec.

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

