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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1092
RA = 29.2165, Dec = -47.7352
tmin = 522374401, tmax = 522633601
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='935153', job_status='RUN', time_executed='2021-08-14 21:31:18.151208', time_epoch_executed='1629001878.15' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935153

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935153/ft1_4FGL_J0156.8-4744_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935153/ft2_4FGL_J0156.8-4744_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935153/ft1_4FGL_J0156.8-4744_daily_bin1092.fits outfile=/scratch/kocevski/935153/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1092.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=522374401.0 tmax=522633601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.66
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935153/ft2_4FGL_J0156.8-4744_daily_bin1092.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/935153/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1092.fits evtable="EVENTS" outfile="/scratch/kocevski/935153/ft1_filtered_4FGL_J0156.8-4744_daily_bin1092.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935153/ft1_filtered_4FGL_J0156.8-4744_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/935153/ft2_4FGL_J0156.8-4744_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/935153/ltcube_522374401_522633601_4FGL_J0156.8-4744_daily_bin1092.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/935153/ft2_4FGL_J0156.8-4744_daily_bin1092.fits
.....................!
real 12.45
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935153/ft1_filtered_4FGL_J0156.8-4744_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/935153/ft2_4FGL_J0156.8-4744_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/935153/ltcube_522374401_522633601_4FGL_J0156.8-4744_daily_bin1092.fits outfile=/scratch/kocevski/935153/expmap_522374401_522633601_4FGL_J0156.8-4744_daily_bin1092.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/935153/ltcube_522374401_522633601_4FGL_J0156.8-4744_daily_bin1092.fits
.....................!
real 191.76
user 187.04
sys 4.32

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/935153/ft1_filtered_4FGL_J0156.8-4744_daily_bin1092.fits scfile=/scratch/kocevski/935153/ft2_4FGL_J0156.8-4744_daily_bin1092.fits outfile=/scratch/kocevski/935153/cmap_522374401_522633601_4FGL_J0156.8-4744_daily_bin1092.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 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935153/ft1_filtered_4FGL_J0156.8-4744_daily_bin1092.fits scfile=/scratch/kocevski/935153/ft2_4FGL_J0156.8-4744_daily_bin1092.fits outfile=/scratch/kocevski/935153/cmap_HighResolution_522374401_522633601_4FGL_J0156.8-4744_daily_bin1092.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 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935153/ft1_filtered_4FGL_J0156.8-4744_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/935153/ft2_4FGL_J0156.8-4744_daily_bin1092.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935153/Model_4FGL_J0156.8-4744_daily_bin1092.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/935153/ft1_filtered_4FGL_J0156.8-4744_daily_bin1092.fits....................!
real 100.06
user 98.56
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0912       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8541       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4970       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11417E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0629       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.398       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.066       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6118       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9463       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4687       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.499       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1622       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0218       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5054.884     FROM MIGRAD    STATUS=CONVERGED   1053 CALLS     3399 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68755        88.974        .18471        .58419E-04
   2  Prefactor     .10000E-03    25.877        .18142E-02** at limit **
   3  Prefactor     7.8463        25.537        .14308E-03   -.24155E-04
   4  norm          5.4994        6.3134        .17137E-03   -.24214E-04
   5  Prefactor     .10000E-03    17.080        .18142E-02** at limit **
   6  Prefactor     4.8764        4.8400        .15118E-03   -.21582E-04
   7  Prefactor     7.0596        6.2294        .15095E-03   -.66504E-04
   8  Prefactor     10.393        9.5590        .12426E-03   -.65144E-04
   9  norm          .10000E-03    128.32        .18142E-02** at limit **
  10  norm          .10000E-03    2.1430        .10152E-02** at limit **
  11  Prefactor     .10000E-03    4.4024        .14561E-02** at limit **
  12  Prefactor     .10000E-03    12.640        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.2188        .33810E-03** at limit **
  14  norm          2.8841        1.6033        .64234E-04   -.33663E-03
  15  Prefactor     .10000E-03    14.914        .18142E-02** at limit **
  16  Prefactor     .10000E-03    39.963        .18142E-02** at limit **
  17  Prefactor     50.053        31.946        .56676E-04   -.11482E-03
  18  norm          .10000E-03    .68079        .11300E-03** at limit **
  19  Prefactor     9.6222        13.628        .12926E-03   -.90504E-04
  20  Prefactor     1.9869        221.90        .29751E-03    .20979E-04
  21  norm          1.4679        1.2107        .67084E-04   -.13575E-03
  22  Prefactor     .10000E-03    3.8605        .13586E-02** at limit **
  23  Prefactor     33.513        21.102        .69234E-04   -.14509E-03
  24  Normalizat    1.1623        .25035        .24030E-03   -.36170E-03
  25  Prefactor     1.0219        .25932        .27257E-03   -.19817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.68755
  Prefactor  = 0.0001
  Prefactor  = 7.84626
  norm       = 5.49939
  Prefactor  = 0.0001
  Prefactor  = 4.87637
  Prefactor  = 7.05964
  Prefactor  = 10.3934
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.0532
  norm       = 0.0001
  Prefactor  = 9.62224
  Prefactor  = 1.98688
  norm       = 1.46793
  Prefactor  = 0.0001
  Prefactor  = 33.5135
  Normalizat = 1.16235
  Prefactor  = 1.02186
 **********
 **   18 **HESSE 
 **********

 FCN=   5054.884     FROM HESSE     STATUS=OK           411 CALLS     3810 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68755        91.645        .18116       -1.5542    
   2  Prefactor     .10000E-03    25.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8463        25.537        .57231E-05   -1.5148    
   4  norm          5.4994        6.3133        .68549E-05   -1.5239    
   5  Prefactor     .10000E-03    17.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8764        4.8400        .60473E-05   -1.5266    
   7  Prefactor     7.0596        6.2295        .60378E-05   -1.5177    
   8  Prefactor     10.393        9.5590        .49702E-05   -1.5063    
   9  norm          .10000E-03    128.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.1430        .20304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4025        .29123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2191        .67619E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8841        1.6033        .25694E-05   -1.5368    
  15  Prefactor     .10000E-03    14.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     50.053        31.939        .11335E-04   -1.4292    
  18  norm          .10000E-03    .68079        .22600E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6222        13.627        .51703E-05   -1.5087    
  20  Prefactor     1.9869        222.14        .11901E-04   -1.5426    
  21  norm          1.4679        1.2106        .26834E-05   -1.5466    
  22  Prefactor     .10000E-03    3.8610        .27171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.513        21.101        .13847E-04   -1.4550    
  24  Normalizat    1.1623        .25058        .48060E-04   -.87774    
  25  Prefactor     1.0219        .25957        .54514E-04   -.92004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27022e-10
Minuit parameter uncertainties:
  1  15.8996
  2  8.74995e-05
  3  25.5728
  4  6.31402
  5  4.14534e-05
  6  4.84044
  7  6.23003
  8  9.56037
  9  0.000319411
  10  6.77713e-06
  11  1.05652e-05
  12  2.67674e-05
  13  2.61356e-05
  14  1.60329
  15  8.37145e-06
  16  0.000161606
  17  31.95
  18  1.76838e-06
  19  13.6316
  20  42.1777
  21  1.21061
  22  4.13098e-05
  23  21.1061
  24  0.250841
  25  0.259893
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.039e+01  9.560e+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:  1.022e+00  2.599e-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.162e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.62e-05

TS (Fixed Index): 2.02
Ra Dec: 29.216 -47.735
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935153/likelihoodResults_522374401_522633601_4FGL_J0156.8-4744_daily_bin1092.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) = 5054.8788114
delta logL = 0.00566402803997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5054.87548433
delta logL = 0.00899109672628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5194       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2872       1.0000          .0000       10.000    
     3 'Normalizat'    1.1573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0251       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5054.875     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      245 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5203        11.906        .12989E-03   -.37295E-03
   2  Index         2.2869        .75760        .71743E-02   -.12177E-03
   3  Normalizat    1.1574        .24325        .24074E-03    .19724E-03
   4  Prefactor     1.0251        .25860        .27218E-03    .24223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.52028
  Index      = 2.28693
  Normalizat = 1.15736
  Prefactor  = 1.02509
 **********
 **   18 **HESSE 
 **********

 FCN=   5054.875     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5203        11.131        .51955E-05   -1.5091    
   2  Index         2.2869        .70792        .28697E-03   -.57355    
   3  Normalizat    1.1574        .24296        .48147E-04   -.87931    
   4  Prefactor     1.0251        .25851        .54437E-04   -.91898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59416e-10
Minuit parameter uncertainties:
  1  11.1336
  2  0.711312
  3  0.243196
  4  0.258825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935153': 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) = 5054.87548426
delta logL = 0.00899116599248

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  9.520e+00  1.113e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.287e+00  7.113e-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:  1.025e+00  2.588e-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.157e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 2.29 +/- 0.71
Photon Flux (Free Index): 4.27e-08 +/- 4.81e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.67e-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/935153/cmap_HighResolution_522374401_522633601_4FGL_J0156.8-4744_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.25e-03', comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='1.65e-05', photon_flux_error='3.56e-08', dlogl='8.99e-03', energy_flux='1.76e-05', photon_flux2='4.27e-08', job_status='DONE', time_completed='2021-08-14 21:43:45.951786', photon_index_error2='0.71', photon_index2='2.29', ts='2.02', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.67e-05', EG='1.16', time_epoch_completed='1629002625.95', return_code='0', job_id='935153', GAL2='1.03', EG2='1.16', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='4.81e-08', ts2='2.03', photon_index='2.19' WHERE bin_id='1092' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:43:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 935153: <4FGL_J0156.8-4744_daily_bin1092> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1092> 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) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:31:07 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:07 2021
Terminated at Sat Aug 14 21:43:46 2021
Results reported at Sat Aug 14 21:43:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1092 29.2165 -47.7352 522374401 522633601 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 :                                   744.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            802 sec.

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

