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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1142
RA = 29.2165, Dec = -47.7352
tmin = 535334401, tmax = 535593601
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='936565', job_status='RUN', time_executed='2021-08-14 21:36:09.984728', time_epoch_executed='1629002169.98' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936565/ft1_4FGL_J0156.8-4744_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936565/ft2_4FGL_J0156.8-4744_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936565/ft1_4FGL_J0156.8-4744_daily_bin1142.fits outfile=/scratch/kocevski/936565/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1142.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=535334401.0 tmax=535593601.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 5.16
user 4.88
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936565/ft1_filtered_4FGL_J0156.8-4744_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/936565/ft2_4FGL_J0156.8-4744_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/936565/ltcube_535334401_535593601_4FGL_J0156.8-4744_daily_bin1142.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/936565/ft2_4FGL_J0156.8-4744_daily_bin1142.fits
.....................!
real 13.27
user 12.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936565/ft1_filtered_4FGL_J0156.8-4744_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/936565/ft2_4FGL_J0156.8-4744_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/936565/ltcube_535334401_535593601_4FGL_J0156.8-4744_daily_bin1142.fits outfile=/scratch/kocevski/936565/expmap_535334401_535593601_4FGL_J0156.8-4744_daily_bin1142.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/936565/ltcube_535334401_535593601_4FGL_J0156.8-4744_daily_bin1142.fits
.....................!
real 192.26
user 187.18
sys 4.53

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/936565/ft1_filtered_4FGL_J0156.8-4744_daily_bin1142.fits scfile=/scratch/kocevski/936565/ft2_4FGL_J0156.8-4744_daily_bin1142.fits outfile=/scratch/kocevski/936565/cmap_535334401_535593601_4FGL_J0156.8-4744_daily_bin1142.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936565/ft1_filtered_4FGL_J0156.8-4744_daily_bin1142.fits scfile=/scratch/kocevski/936565/ft2_4FGL_J0156.8-4744_daily_bin1142.fits outfile=/scratch/kocevski/936565/cmap_HighResolution_535334401_535593601_4FGL_J0156.8-4744_daily_bin1142.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936565/ft1_filtered_4FGL_J0156.8-4744_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/936565/ft2_4FGL_J0156.8-4744_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936565/Model_4FGL_J0156.8-4744_daily_bin1142.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/936565/ft1_filtered_4FGL_J0156.8-4744_daily_bin1142.fits.....................!
real 93.08
user 90.88
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.568       1.0000         .10000E-03   10000.    
     4 'norm      '    14.617       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13541E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.312       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1646       1.0000         .10000E-03   10000.    
     9 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .16917E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6731       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.5736       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3488       1.0000         .10000E-03   10000.    
    18 'norm      '    6.8138       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2225       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4331       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81651       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1089       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=   4798.845     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2853 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.911       -.27150E-06** at limit **
   2  Prefactor     .10000E-03    7.6374       -.20671E-06** at limit **
   3  Prefactor     14.569        14.164        .37216E-07   -.89771E-05
   4  norm          14.616        8.2527        .56112E-07   -.73846E-05
   5  Prefactor     .10000E-03    122.26        .96181E-05** at limit **
   6  Prefactor     11.313        7.3655       -.27451E-06   -.33957E-03
   7  Prefactor     .10000E-03    2.9232        .41264E-08** at limit **
   8  Prefactor     3.1844        9.6314        .49777E-05   -.42162E-04
   9  norm          .10000E-03    18.851        .26382E-06** at limit **
  10  norm          .10000E-03    8.1003        .30763E-06** at limit **
  11  Prefactor     9.6737        13.912        .76441E-07   -.52632E-04
  12  Prefactor     .10000E-03    11.045        .10890E-05** at limit **
  13  Prefactor     .10000E-03    2.2795       -.10499E-07** at limit **
  14  norm          9.5734        2.4410       -.53338E-07   -.74613E-04
  15  Prefactor     .10000E-03    51.495       -.30319E-05** at limit **
  16  Prefactor     .10000E-03    13.297       -.11624E-05** at limit **
  17  Prefactor     9.3282        18.660        .81877E-06    .31794E-04
  18  norm          6.8132        2.8215        .81252E-07    .57690E-04
  19  Prefactor     .10000E-03    7.3817        .39315E-06** at limit **
  20  Prefactor     .10000E-03    25.211        .10357E-05** at limit **
  21  norm          2.2225        1.5946        .69654E-07   -.39770E-04
  22  Prefactor     .10000E-03    6.4815       -.67715E-07** at limit **
  23  Prefactor     3.4381        18.513        .79960E-06    .35271E-05
  24  Normalizat    .81654        .19737       -.12956E-05   -.16881E-03
  25  Prefactor     1.1090        .20847       -.20984E-06   -.17301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5694
  norm       = 14.616
  Prefactor  = 0.000100003
  Prefactor  = 11.3134
  Prefactor  = 0.0001
  Prefactor  = 3.18439
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.67367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.5734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.32815
  norm       = 6.81319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22247
  Prefactor  = 0.0001
  Prefactor  = 3.43806
  Normalizat = 0.816539
  Prefactor  = 1.109
 **********
 **   18 **HESSE 
 **********

 FCN=   4798.845     FROM HESSE     STATUS=OK           425 CALLS     3278 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.569        14.167        .10494E-03   -1.4944    
   4  norm          14.616        8.2537        .10476E-03   -1.4943    
   5  Prefactor     .10000E-03    122.31        .41099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.313        7.3987        .11911E-03   -1.5035    
   7  Prefactor     .10000E-03    2.9652        .11565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1844        9.6573        .11391E-02   -1.5351    
   9  norm          .10000E-03    18.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.5593        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6737        13.921        .12885E-03   -1.5086    
  12  Prefactor     .10000E-03    11.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2857        .10209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.5734        2.4425        .51569E-04   -1.5089    
  15  Prefactor     .10000E-03    51.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.3282        18.681        .13107E-03   -1.5097    
  18  norm          6.8132        2.8225        .71855E-04   -1.5186    
  19  Prefactor     .10000E-03    7.4080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2225        1.5875        .70144E-04   -1.5410    
  22  Prefactor     .10000E-03    6.6508        .34364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4381        18.466        .21830E-03   -1.5337    
  24  Normalizat    .81654        .23398        .26035E-03   -.99458    
  25  Prefactor     1.1090        .24810        .24818E-03   -.89180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24776e-10
Minuit parameter uncertainties:
  1  2.32694e-06
  2  1.69391e-06
  3  14.1701
  4  8.25433
  5  0.0011606
  6  7.39928
  7  1.82838e-06
  8  9.66205
  9  4.45727e-06
  10  2.80571e-05
  11  13.9254
  12  9.95266e-06
  13  1.33181e-07
  14  2.4425
  15  5.63592e-05
  16  3.92122e-05
  17  18.6925
  18  2.82256
  19  3.00533e-06
  20  2.03993e-05
  21  1.58752
  22  9.11157e-07
  23  15.9431
  24  0.23427
  25  0.24836
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  3.184e+00  9.662e+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.109e+00  2.484e-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:  8.165e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936565/likelihoodResults_535334401_535593601_4FGL_J0156.8-4744_daily_bin1142.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) = 4798.70908397
delta logL = 0.136102167649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4798.67911986
delta logL = 0.166066278364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6330       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9099       1.0000          .0000       10.000    
     3 'Normalizat'    .79864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1196       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=   4798.679     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      266 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6328        20.532        .13622E-03   -.90444E-03
   2  Index         2.9102        2.7638        .71470E-02   -.13121E-03
   3  Normalizat    .79859        .22788        .26284E-03   -.28801E-03
   4  Prefactor     1.1195        .24913        .24705E-03   -.28099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63276
  Index      = 2.91024
  Normalizat = 0.798589
  Prefactor  = 1.11952
 **********
 **   18 **HESSE 
 **********

 FCN=   4798.679     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6328        5.3906        .54488E-05   -1.5452    
   2  Index         2.9102        1.3610        .28588E-03   -.43119    
   3  Normalizat    .79859        .22734        .52567E-04   -1.0012    
   4  Prefactor     1.1195        .24728        .49411E-04   -.88845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15126e-10
Minuit parameter uncertainties:
  1  5.39223
  2  1.3822
  3  0.22761
  4  0.247538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936565': 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) = 4798.67911923
delta logL = 0.166066912992

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.633e+00  5.392e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.910e+00  1.382e+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  2.475e-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:  7.986e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/936565/cmap_HighResolution_535334401_535593601_4FGL_J0156.8-4744_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', job_status='DONE', photon_flux_upper_limit='9.65e-08', time_completed='2021-08-14 21:48:00.520201', job_id='936565', GAL2='1.12', fit_tolerance='1e-08', EG2='0.80', EG='0.82', time_epoch_completed='1629002880.52', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.66e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1142' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:48:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 936565: <4FGL_J0156.8-4744_daily_bin1142> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1142> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 21:35:27 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:35:40 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:40 2021
Terminated at Sat Aug 14 21:48:01 2021
Results reported at Sat Aug 14 21:48:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1142 29.2165 -47.7352 535334401 535593601 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 :                                   704.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            754 sec.

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

