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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1164
RA = 29.2165, Dec = -47.7352
tmin = 541036801, tmax = 541296001
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='936610', job_status='RUN', time_executed='2021-08-14 21:37:47.436449', time_epoch_executed='1629002267.44' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936610/ft1_4FGL_J0156.8-4744_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936610/ft2_4FGL_J0156.8-4744_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936610/ft1_4FGL_J0156.8-4744_daily_bin1164.fits outfile=/scratch/kocevski/936610/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1164.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=541036801.0 tmax=541296001.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.55
user 3.39
sys 1.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936610/ft1_filtered_4FGL_J0156.8-4744_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/936610/ft2_4FGL_J0156.8-4744_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/936610/ltcube_541036801_541296001_4FGL_J0156.8-4744_daily_bin1164.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/936610/ft2_4FGL_J0156.8-4744_daily_bin1164.fits
.....................!
real 14.45
user 13.01
sys 1.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936610/ft1_filtered_4FGL_J0156.8-4744_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/936610/ft2_4FGL_J0156.8-4744_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/936610/ltcube_541036801_541296001_4FGL_J0156.8-4744_daily_bin1164.fits outfile=/scratch/kocevski/936610/expmap_541036801_541296001_4FGL_J0156.8-4744_daily_bin1164.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/936610/ltcube_541036801_541296001_4FGL_J0156.8-4744_daily_bin1164.fits
.....................!
real 194.90
user 187.86
sys 6.51

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/936610/ft1_filtered_4FGL_J0156.8-4744_daily_bin1164.fits scfile=/scratch/kocevski/936610/ft2_4FGL_J0156.8-4744_daily_bin1164.fits outfile=/scratch/kocevski/936610/cmap_541036801_541296001_4FGL_J0156.8-4744_daily_bin1164.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.44
user 0.37
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936610/ft1_filtered_4FGL_J0156.8-4744_daily_bin1164.fits scfile=/scratch/kocevski/936610/ft2_4FGL_J0156.8-4744_daily_bin1164.fits outfile=/scratch/kocevski/936610/cmap_HighResolution_541036801_541296001_4FGL_J0156.8-4744_daily_bin1164.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.35
user 0.41
sys 0.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936610/ft1_filtered_4FGL_J0156.8-4744_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/936610/ft2_4FGL_J0156.8-4744_daily_bin1164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936610/Model_4FGL_J0156.8-4744_daily_bin1164.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/936610/ft1_filtered_4FGL_J0156.8-4744_daily_bin1164.fits.....................!
real 104.01
user 101.35
sys 2.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.174       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.294       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.059       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.391       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1891       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2781       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23322E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.032       1.0000         .10000E-03   10000.    
    14 'norm      '    10.287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.583       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.651       1.0000         .10000E-03   10000.    
    18 'norm      '    20.757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .65116       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.165       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1627       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86974       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=   5182.135     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2880 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.160        78.950        .19135E-05   -.16555E-05
   2  Prefactor     .10000E-03    9.1157        .56379E-06** at limit **
   3  Prefactor     33.305        30.801        .11658E-06   -.87249E-05
   4  norm          .10000E-03    3.1781        .21795E-07** at limit **
   5  Prefactor     27.030        37.813        .20383E-05   -.80225E-06
   6  Prefactor     .10000E-03    4.2347       -.30404E-06** at limit **
   7  Prefactor     11.391        8.6612        .43860E-06   -.12979E-04
   8  Prefactor     7.1903        9.5739        .17873E-06   -.10368E-04
   9  norm          .10000E-03    17.002        .23895E-05** at limit **
  10  norm          .10000E-03    2.9692        .12658E-07** at limit **
  11  Prefactor     2.2782        16.655        .77494E-05   -.82754E-06
  12  Prefactor     .10000E-03    167.79        .65650E-06** at limit **
  13  Prefactor     11.032        6.4246        .26120E-07   -.26684E-05
  14  norm          10.288        2.6902        .29068E-07   -.22320E-05
  15  Prefactor     23.567        46.311        .23247E-05    .20434E-06
  16  Prefactor     .10000E-03    6.7513        .27814E-06** at limit **
  17  Prefactor     17.655        17.368        .69210E-06   -.23197E-05
  18  norm          20.757        4.0799        .90042E-07    .21916E-04
  19  Prefactor     .10000E-03    7.2582       -.50167E-06** at limit **
  20  Prefactor     .10000E-03    20.458       -.13766E-05** at limit **
  21  norm          .65053        .99485        .28148E-06    .42709E-04
  22  Prefactor     13.165        7.6961        .20145E-06    .86314E-04
  23  Prefactor     .10000E-03    13.384       -.12976E-05** at limit **
  24  Normalizat    1.1622        .21080       -.21800E-06    .37084E-04
  25  Prefactor     .87027        .21964       -.15241E-05    .95648E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.1597
  Prefactor  = 0.0001
  Prefactor  = 33.3046
  norm       = 0.0001
  Prefactor  = 27.0297
  Prefactor  = 0.0001
  Prefactor  = 11.3912
  Prefactor  = 7.19026
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.27821
  Prefactor  = 0.0001
  Prefactor  = 11.0316
  norm       = 10.2879
  Prefactor  = 23.5665
  Prefactor  = 0.0001
  Prefactor  = 17.6552
  norm       = 20.7572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.650526
  Prefactor  = 13.1652
  Prefactor  = 0.0001
  Normalizat = 1.1622
  Prefactor  = 0.870272
 **********
 **   18 **HESSE 
 **********

 FCN=   5182.135     FROM HESSE     STATUS=OK           429 CALLS     3309 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.160        78.953        .46310E-04   -1.3972    
   2  Prefactor     .10000E-03    9.1225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.305        31.066        .69446E-04   -1.4553    
   4  norm          .10000E-03    3.1820        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.030        37.880        .77013E-04   -1.4668    
   6  Prefactor     .10000E-03    4.2919        .14470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.391        8.6638        .59349E-03   -1.5033    
   8  Prefactor     7.1903        9.5558        .14960E-03   -1.5172    
   9  norm          .10000E-03    17.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.9775        .12103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2782        16.694        .13602E-02   -1.5406    
  12  Prefactor     .10000E-03    172.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.032        6.4274        .12062E-03   -1.5044    
  14  norm          10.288        2.6943        .55993E-04   -1.5066    
  15  Prefactor     23.567        46.315        .82485E-04   -1.4737    
  16  Prefactor     .10000E-03    6.7583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.655        17.376        .95332E-04   -1.4867    
  18  norm          20.757        4.0793        .61787E-04   -1.4796    
  19  Prefactor     .10000E-03    7.2925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .65053        .99507        .23746E-03   -1.5547    
  22  Prefactor     13.165        7.6976        .11040E-03   -1.4982    
  23  Prefactor     .10000E-03    13.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1622        .25511        .25441E-03   -.87779    
  25  Prefactor     .87027        .26260        .30741E-03   -.97188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81237e-10
Minuit parameter uncertainties:
  1  79.0636
  2  3.36009e-08
  3  31.0812
  4  1.97216e-06
  5  37.9135
  6  2.98021e-05
  7  8.66477
  8  9.55779
  9  6.54784e-06
  10  8.61006e-07
  11  12.3385
  12  0.000161164
  13  6.4278
  14  2.69432
  15  46.3853
  16  3.36365e-06
  17  17.3809
  18  4.07939
  19  6.79775e-06
  20  1.54791e-07
  21  0.995099
  22  7.69815
  23  1.28467e-05
  24  0.255382
  25  0.262983
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  7.190e+00  9.558e+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:  8.703e-01  2.630e-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.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936610/likelihoodResults_541036801_541296001_4FGL_J0156.8-4744_daily_bin1164.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) = 5181.4951295
delta logL = 0.639518070968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5181.46002568
delta logL = 0.674621895103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6951       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3715       1.0000          .0000       10.000    
     3 'Normalizat'    1.0971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91251       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=   5181.460     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      300 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6945        22.990        .80803E-02    .47837E-03
   2  Index         3.3717        2.4260        .11694        .12856E-03
   3  Normalizat    1.0974        .57286E-01    .58862E-01    .80272E-05
   4  Prefactor     .91218        .59221E-01    .67980E-01    .14423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69449
  Index      = 3.37175
  Normalizat = 1.09742
  Prefactor  = 0.912177
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.460     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      333 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6945        51.408        .71132E-04   -1.5448    
   2  Index         3.3717        6.6503        .39907E-02   -.33170    
   3  Normalizat    1.0974        .28294        .26031E-03   -.89835    
   4  Prefactor     .91218        .28995        .30072E-03   -.95717    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.05776e-07
Minuit parameter uncertainties:
  1  18.6836
  2  5.05937
  3  0.283331
  4  0.290438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936610': 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): 102
logL (Free Index) = 5181.46002464
delta logL = 0.674622928901

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.694e+00  1.868e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  3.372e+00  5.059e+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:  9.122e-01  2.904e-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.097e+00  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 3.37 +/- 5.06
Photon Flux (Free Index): 8.44e-08 +/- 1.04e-07
Energy Flux (Free Index): 1.46e-05 +/- 1.48e-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/936610/cmap_HighResolution_541036801_541296001_4FGL_J0156.8-4744_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-03', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='6.75e-01', photon_flux2='8.44e-08', job_status='DONE', time_completed='2021-08-14 21:50:27.310664', photon_index_error2='5.06', photon_index2='3.37', ts='0.84', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.48e-05', EG='1.16', time_epoch_completed='1629003027.31', return_code='0', job_id='936610', GAL2='0.91', EG2='1.10', return_code2='102', photon_flux_error2='1.04e-07', ts2='2.25', photon_index='2.19' WHERE bin_id='1164' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 936610: <4FGL_J0156.8-4744_daily_bin1164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1164 29.2165 -47.7352 541036801 541296001 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 :                                   764.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            898 sec.

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

