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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1601
RA = 29.2165, Dec = -47.7352
tmin = 654307201, tmax = 654566401
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='539563', job_status='RUN', time_executed='2021-09-29 00:06:43.594725', time_epoch_executed='1632899203.59' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/539563

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/539563/ft1_4FGL_J0156.8-4744_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/539563/ft2_4FGL_J0156.8-4744_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/539563/ft1_4FGL_J0156.8-4744_daily_bin1601.fits outfile=/scratch/kocevski/539563/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1601.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=654307201.0 tmax=654566401.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.23
user 3.97
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/539563/ft2_4FGL_J0156.8-4744_daily_bin1601.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/539563/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/539563/ft1_filtered_4FGL_J0156.8-4744_daily_bin1601.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/539563/ft1_filtered_4FGL_J0156.8-4744_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/539563/ft2_4FGL_J0156.8-4744_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/539563/ltcube_654307201_654566401_4FGL_J0156.8-4744_daily_bin1601.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/539563/ft2_4FGL_J0156.8-4744_daily_bin1601.fits
.....................!
real 12.02
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/539563/ft1_filtered_4FGL_J0156.8-4744_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/539563/ft2_4FGL_J0156.8-4744_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/539563/ltcube_654307201_654566401_4FGL_J0156.8-4744_daily_bin1601.fits outfile=/scratch/kocevski/539563/expmap_654307201_654566401_4FGL_J0156.8-4744_daily_bin1601.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/539563/ltcube_654307201_654566401_4FGL_J0156.8-4744_daily_bin1601.fits
.....................!
real 191.05
user 185.67
sys 4.95

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/539563/ft1_filtered_4FGL_J0156.8-4744_daily_bin1601.fits scfile=/scratch/kocevski/539563/ft2_4FGL_J0156.8-4744_daily_bin1601.fits outfile=/scratch/kocevski/539563/cmap_654307201_654566401_4FGL_J0156.8-4744_daily_bin1601.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/539563/ft1_filtered_4FGL_J0156.8-4744_daily_bin1601.fits scfile=/scratch/kocevski/539563/ft2_4FGL_J0156.8-4744_daily_bin1601.fits outfile=/scratch/kocevski/539563/cmap_HighResolution_654307201_654566401_4FGL_J0156.8-4744_daily_bin1601.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.51
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/539563/ft1_filtered_4FGL_J0156.8-4744_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/539563/ft2_4FGL_J0156.8-4744_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/539563/Model_4FGL_J0156.8-4744_daily_bin1601.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/539563/ft1_filtered_4FGL_J0156.8-4744_daily_bin1601.fits.....................!
real 91.89
user 90.46
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.348       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2404       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99272E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.074       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3968       1.0000         .10000E-03   10000.    
     9 'norm      '    34.661       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28623E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0410       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4004       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.380       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0258       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3808       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.553       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0524       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1523       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=   4819.424     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2899 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.906        61.711        .10366E-05    .77612E-05
   2  Prefactor     19.338        31.317       -.38286E-06   -.10345E-03
   3  Prefactor     .10000E-03    12.230        .30879E-07** at limit **
   4  norm          3.2421        8.0872        .11650E-05    .13760E-03
   5  Prefactor     .10010E-03    221.40       -.13399E-04** at limit **
   6  Prefactor     29.054        10.286       -.10212E-05   -.15442E-02
   7  Prefactor     .10000E-03    2.8516        .16000E-07** at limit **
   8  Prefactor     3.3965        5.7302        .36573E-06    .69278E-04
   9  norm          34.662        37.862        .37284E-07    .12007E-05
  10  norm          .10000E-03    4.8222        .73056E-06** at limit **
  11  Prefactor     .10103E-03    31.700        .81918E-05** at limit **
  12  Prefactor     38.792        40.015        .26600E-06   -.11383E-03
  13  Prefactor     7.0416        5.8344        .13214E-06    .75800E-04
  14  norm          1.4008        1.4880        .17179E-06    .20356E-03
  15  Prefactor     .10000E-03    15.333        .65016E-07** at limit **
  16  Prefactor     .10000E-03    15.010        .38150E-06** at limit **
  17  Prefactor     28.382        24.589        .41831E-06   -.90975E-05
  18  norm          3.0262        2.3920        .15330E-06    .75657E-04
  19  Prefactor     .10000E-03    16.639       -.99190E-07** at limit **
  20  Prefactor     .10000E-03    20.703        .41407E-07** at limit **
  21  norm          .10000E-03    .73486        .77796E-07** at limit **
  22  Prefactor     3.3809        3.3774       -.59443E-07   -.11221E-03
  23  Prefactor     16.556        17.771        .31073E-06   -.14915E-04
  24  Normalizat    1.0524        .20999       -.20178E-05   -.86656E-03
  25  Prefactor     1.1522        .22502       -.35363E-06   -.78788E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9062
  Prefactor  = 19.3383
  Prefactor  = 0.0001
  norm       = 3.2421
  Prefactor  = 0.000100103
  Prefactor  = 29.0544
  Prefactor  = 0.0001
  Prefactor  = 3.39652
  norm       = 34.6616
  norm       = 0.0001
  Prefactor  = 0.00010103
  Prefactor  = 38.7919
  Prefactor  = 7.04158
  norm       = 1.40083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3825
  norm       = 3.02617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.3809
  Prefactor  = 16.5555
  Normalizat = 1.05237
  Prefactor  = 1.15221
 **********
 **   18 **HESSE 
 **********

 FCN=   4819.424     FROM HESSE     STATUS=OK           425 CALLS     3324 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.906        61.757        .75847E-04   -1.4651    
   2  Prefactor     19.338        31.309        .91057E-04   -1.4828    
   3  Prefactor     .10000E-03    12.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2421        8.1185        .22501E-03   -1.5348    
   5  Prefactor     .10010E-03    225.90        .41534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.054        10.402        .74302E-04   -1.4629    
   7  Prefactor     .10000E-03    2.8703        .11448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3965        5.7133        .20799E-03   -1.5339    
   9  norm          34.662        37.863        .68068E-04   -1.4530    
  10  norm          .10000E-03    4.8711        .14874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10103E-03    82.322        .48496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.792        39.978        .64360E-04   -1.4461    
  13  Prefactor     7.0416        5.8187        .14458E-03   -1.5177    
  14  norm          1.4008        1.4703        .82121E-04   -1.5471    
  15  Prefactor     .10000E-03    15.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.382        24.567        .75203E-04   -1.4642    
  18  norm          3.0262        2.3936        .91782E-04   -1.5360    
  19  Prefactor     .10000E-03    16.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.1484        .11525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3809        3.3842        .12411E-03   -1.5340    
  23  Prefactor     16.556        17.774        .98442E-04   -1.4894    
  24  Normalizat    1.0524        .24699        .25446E-03   -.91296    
  25  Prefactor     1.1522        .26606        .26581E-03   -.87815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43653e-08
Minuit parameter uncertainties:
  1  61.899
  2  31.336
  3  8.46291e-06
  4  8.12129
  5  0.00966731
  6  10.4026
  7  3.79241e-06
  8  5.71419
  9  37.8896
  10  6.23039e-05
  11  0.0184431
  12  40.0055
  13  5.81915
  14  1.47029
  15  2.57969e-05
  16  8.88462e-05
  17  24.5762
  18  2.39369
  19  3.89102e-05
  20  1.82497e-05
  21  1.21809e-05
  22  3.38442
  23  17.7801
  24  0.247263
  25  0.266373
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  3.397e+00  5.714e+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.152e+00  2.664e-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.052e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/539563/likelihoodResults_654307201_654566401_4FGL_J0156.8-4744_daily_bin1601.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) = 4819.37090826
delta logL = 0.0526007656181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4819.36919715
delta logL = 0.05431187458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6036       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8480       1.0000          .0000       10.000    
     3 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1488       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=   4819.369     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      260 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6036        379.38        .46899E-02   -.16667E-03
   2  Index         1.8480        5.5603        .26745        .31842E-04
   3  Normalizat    1.0570        .98356E-01    .57468E-01   -.28197E-04
   4  Prefactor     1.1488        .81361E-01    .60175E-01    .28031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60362
  Index      = 1.84798
  Normalizat = 1.05698
  Prefactor  = 1.1488
 **********
 **   18 **HESSE 
 **********

 FCN=   4819.369     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6036        7.6832        .18760E-03   -1.5279    
   2  Index         1.8480        .97535        .11964E-01   -.68207    
   3  Normalizat    1.0570        .24102        .25413E-03   -.91145    
   4  Prefactor     1.1488        .26299        .26612E-03   -.87922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39787e-10
Minuit parameter uncertainties:
  1  7.68487
  2  0.985923
  3  0.241268
  4  0.263292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/539563': 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) = 4819.36919715
delta logL = 0.0543118745863

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  4.604e+00  7.685e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.848e+00  9.859e-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.149e+00  2.633e-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.057e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/539563/cmap_HighResolution_654307201_654566401_4FGL_J0156.8-4744_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2021-09-29 00:18:04.327340', job_id='539563', GAL2='1.15', fit_tolerance='1e-08', EG2='1.06', EG='1.05', time_epoch_completed='1632899884.33', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.43e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1601' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:18:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 539563: <4FGL_J0156.8-4744_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1601> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:05:14 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:05:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:05:16 2021
Terminated at Wed Sep 29 00:18:05 2021
Results reported at Wed Sep 29 00:18:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1601 29.2165 -47.7352 654307201 654566401 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 :                                   680.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            771 sec.

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

