/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 74 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1270
RA = 29.2165, Dec = -47.7352
tmin = 568512001, tmax = 568771201
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='936788', job_status='RUN', time_executed='2021-08-14 21:38:15.784846', time_epoch_executed='1629002295.78' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936788/ft1_4FGL_J0156.8-4744_daily_bin1270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936788/ft2_4FGL_J0156.8-4744_daily_bin1270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936788/ft1_4FGL_J0156.8-4744_daily_bin1270.fits outfile=/scratch/kocevski/936788/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1270.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=568512001.0 tmax=568771201.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.88
user 3.34
sys 1.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936788/ft1_filtered_4FGL_J0156.8-4744_daily_bin1270.fits" evtable="EVENTS" scfile=/scratch/kocevski/936788/ft2_4FGL_J0156.8-4744_daily_bin1270.fits sctable="SC_DATA" outfile=/scratch/kocevski/936788/ltcube_568512001_568771201_4FGL_J0156.8-4744_daily_bin1270.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/936788/ft2_4FGL_J0156.8-4744_daily_bin1270.fits
.....................!
real 14.24
user 12.41
sys 1.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936788/ft1_filtered_4FGL_J0156.8-4744_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/936788/ft2_4FGL_J0156.8-4744_daily_bin1270.fits sctable="SC_DATA" expcube=/scratch/kocevski/936788/ltcube_568512001_568771201_4FGL_J0156.8-4744_daily_bin1270.fits outfile=/scratch/kocevski/936788/expmap_568512001_568771201_4FGL_J0156.8-4744_daily_bin1270.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/936788/ltcube_568512001_568771201_4FGL_J0156.8-4744_daily_bin1270.fits
.....................!
real 194.90
user 187.57
sys 6.90

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/936788/ft1_filtered_4FGL_J0156.8-4744_daily_bin1270.fits scfile=/scratch/kocevski/936788/ft2_4FGL_J0156.8-4744_daily_bin1270.fits outfile=/scratch/kocevski/936788/cmap_568512001_568771201_4FGL_J0156.8-4744_daily_bin1270.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.82
user 0.36
sys 1.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936788/ft1_filtered_4FGL_J0156.8-4744_daily_bin1270.fits scfile=/scratch/kocevski/936788/ft2_4FGL_J0156.8-4744_daily_bin1270.fits outfile=/scratch/kocevski/936788/cmap_HighResolution_568512001_568771201_4FGL_J0156.8-4744_daily_bin1270.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.83
user 0.39
sys 1.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936788/ft1_filtered_4FGL_J0156.8-4744_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/936788/ft2_4FGL_J0156.8-4744_daily_bin1270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936788/Model_4FGL_J0156.8-4744_daily_bin1270.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/936788/ft1_filtered_4FGL_J0156.8-4744_daily_bin1270.fits.....................!
real 101.57
user 98.34
sys 2.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    24.005       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11595E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14466E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2786       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2535       1.0000         .10000E-03   10000.    
    14 'norm      '    14.931       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1288       1.0000         .10000E-03   10000.    
    20 'Prefactor '    90.662       1.0000         .10000E-03   10000.    
    21 'norm      '    .95880       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5301       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1133       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1244       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=   5061.905     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2896 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.447        .35389E-05** at limit **
   2  Prefactor     .10000E-03    43.729        .87536E-05** at limit **
   3  Prefactor     .10000E-03    16.783       -.35846E-06** at limit **
   4  norm          24.007        13.490       -.55402E-07   -.20711E-05
   5  Prefactor     .10000E-03    73.487       -.47401E-05** at limit **
   6  Prefactor     .10000E-03    6.2677        .70340E-07** at limit **
   7  Prefactor     7.9335        6.7008       -.10905E-07   -.45030E-04
   8  Prefactor     5.2780        6.4634       -.12227E-05   -.13844E-02
   9  norm          .10000E-03    36.446       -.12462E-04** at limit **
  10  norm          1.8019        4.7128       -.19456E-06   -.39976E-03
  11  Prefactor     .10000E-03    3.9202        .76664E-08** at limit **
  12  Prefactor     63.334        45.874       -.10286E-05    .43796E-04
  13  Prefactor     5.2531        5.8592       -.14002E-05    .21385E-04
  14  norm          14.931        3.0869        .11862E-06    .38875E-04
  15  Prefactor     .10000E-03    24.992        .29838E-05** at limit **
  16  Prefactor     .10000E-03    9.2687        .46182E-07** at limit **
  17  Prefactor     .10000E-03    10.105       -.25826E-07** at limit **
  18  norm          14.400        4.0848        .35946E-08   -.20935E-04
  19  Prefactor     3.1373        18.499       -.99891E-06   -.89047E-04
  20  Prefactor     90.656        75.959       -.54175E-05    .65120E-04
  21  norm          .95895        1.0518       -.31200E-09   -.15453E-04
  22  Prefactor     5.5309        6.9963       -.26312E-06   -.19046E-03
  23  Prefactor     .10000E-03    4.1169        .92678E-08** at limit **
  24  Normalizat    1.1126        .22921        .49180E-06   -.52066E-05
  25  Prefactor     1.1250        .23548        .54476E-06   -.81773E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 24.007
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.93355
  Prefactor  = 5.27804
  norm       = 0.000100002
  norm       = 1.80195
  Prefactor  = 0.0001
  Prefactor  = 63.3345
  Prefactor  = 5.25305
  norm       = 14.9311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4
  Prefactor  = 3.1373
  Prefactor  = 90.6555
  norm       = 0.958948
  Prefactor  = 5.53086
  Prefactor  = 0.0001
  Normalizat = 1.11264
  Prefactor  = 1.125
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.905     FROM HESSE     STATUS=OK           427 CALLS     3323 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          24.007        13.487        .81757E-04   -1.4728    
   5  Prefactor     .10000E-03    74.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.662        .34206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9335        6.6992        .14236E-03   -1.5145    
   8  Prefactor     5.2780        7.0164        .87471E-03   -1.5248    
   9  norm          .10000E-03    34.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8019        4.6747        .22394E-03   -1.5439    
  11  Prefactor     .10000E-03    3.9211        .13758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     63.334        45.779        .50423E-04   -1.4115    
  13  Prefactor     5.2531        5.8561        .17379E-03   -1.5250    
  14  norm          14.931        3.0901        .53421E-04   -1.4935    
  15  Prefactor     .10000E-03    24.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.400        4.0819        .72514E-04   -1.4949    
  19  Prefactor     3.1373        18.356        .22920E-03   -1.5354    
  20  Prefactor     90.656        75.307        .42202E-04   -1.3801    
  21  norm          .95895        1.0297        .71945E-04   -1.5512    
  22  Prefactor     5.5309        7.0033        .17085E-03   -1.5238    
  23  Prefactor     .10000E-03    4.1177        .14099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1126        .27574        .27729E-03   -.89347    
  25  Prefactor     1.1250        .28450        .29529E-03   -.88671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26991e-09
Minuit parameter uncertainties:
  1  0.000182488
  2  0.000538297
  3  8.29548e-06
  4  13.4886
  5  0.000300703
  6  0.000642227
  7  6.69981
  8  7.01745
  9  0.000565073
  10  4.67568
  11  1.54508e-07
  12  45.8042
  13  5.85672
  14  3.09011
  15  0.000116906
  16  4.52356e-06
  17  2.53832e-06
  18  4.08199
  19  15.1841
  20  75.3862
  21  1.02972
  22  7.00431
  23  1.14121e-07
  24  0.276093
  25  0.284882
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  5.278e+00  7.017e+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.125e+00  2.849e-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.113e+00  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.97e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 8.95e-06 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/936788/likelihoodResults_568512001_568771201_4FGL_J0156.8-4744_daily_bin1270.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) = 5061.86361971
delta logL = 0.0418776569049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5061.86136907
delta logL = 0.0441282879765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5923       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9178       1.0000          .0000       10.000    
     3 'Normalizat'    1.1176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1218       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=   5061.861     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      263 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5936        9.2662        .15630E-03   -.10252E-02
   2  Index         1.9176        .89325        .99511E-02   -.24343E-03
   3  Normalizat    1.1178        .26147        .27677E-03    .28118E-03
   4  Prefactor     1.1216        .28070        .29568E-03    .30668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.59362
  Index      = 1.91758
  Normalizat = 1.11776
  Prefactor  = 1.12163
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.861     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5936        9.1280        .31259E-04   -1.5194    
   2  Index         1.9176        .88030        .39805E-03   -.66427    
   3  Normalizat    1.1178        .26166        .55354E-04   -.89184    
   4  Prefactor     1.1216        .28093        .59136E-04   -.88778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42554e-09
Minuit parameter uncertainties:
  1  9.12991
  2  0.887807
  3  0.261961
  4  0.281298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936788': 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) = 5061.86136889
delta logL = 0.0441284680164

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  6.594e+00  9.130e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.918e+00  8.878e-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.122e+00  2.813e-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.118e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 1.92 +/- 0.89
Photon Flux (Free Index): 1.48e-08 +/- 2.51e-08
Energy Flux (Free Index): 1.27e-05 +/- 2.37e-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/936788/cmap_HighResolution_568512001_568771201_4FGL_J0156.8-4744_daily_bin1270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', comment='SUCCESS', photon_flux='1.97e-08', energy_flux2='1.27e-05', photon_flux_error='2.61e-08', dlogl='4.41e-02', energy_flux='8.95e-06', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-08-14 21:50:40.006526', photon_index_error2='0.89', photon_index2='1.92', ts='1.12', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='9.95e-08', energy_flux_error2='2.37e-05', EG='1.11', time_epoch_completed='1629003040.01', return_code='0', job_id='936788', GAL2='1.12', EG2='1.12', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.51e-08', ts2='1.21', photon_index='2.19' WHERE bin_id='1270' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:50:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 936788: <4FGL_J0156.8-4744_daily_bin1270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1270 29.2165 -47.7352 568512001 568771201 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 :                                   761.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            896 sec.

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

