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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1146
RA = 29.2165, Dec = -47.7352
tmin = 536371201, tmax = 536630401
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='936572', job_status='RUN', time_executed='2021-08-14 21:36:12.435085', time_epoch_executed='1629002172.44' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936572/ft1_4FGL_J0156.8-4744_daily_bin1146.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936572/ft2_4FGL_J0156.8-4744_daily_bin1146.fits


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

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

Done.
real 3.67
user 3.35
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936572/ft1_filtered_4FGL_J0156.8-4744_daily_bin1146.fits" evtable="EVENTS" scfile=/scratch/kocevski/936572/ft2_4FGL_J0156.8-4744_daily_bin1146.fits sctable="SC_DATA" outfile=/scratch/kocevski/936572/ltcube_536371201_536630401_4FGL_J0156.8-4744_daily_bin1146.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/936572/ft2_4FGL_J0156.8-4744_daily_bin1146.fits
.....................!
real 14.15
user 13.67
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936572/ft1_filtered_4FGL_J0156.8-4744_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/936572/ft2_4FGL_J0156.8-4744_daily_bin1146.fits sctable="SC_DATA" expcube=/scratch/kocevski/936572/ltcube_536371201_536630401_4FGL_J0156.8-4744_daily_bin1146.fits outfile=/scratch/kocevski/936572/expmap_536371201_536630401_4FGL_J0156.8-4744_daily_bin1146.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/936572/ltcube_536371201_536630401_4FGL_J0156.8-4744_daily_bin1146.fits
.....................!
real 193.17
user 186.18
sys 5.00

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/936572/ft1_filtered_4FGL_J0156.8-4744_daily_bin1146.fits scfile=/scratch/kocevski/936572/ft2_4FGL_J0156.8-4744_daily_bin1146.fits outfile=/scratch/kocevski/936572/cmap_536371201_536630401_4FGL_J0156.8-4744_daily_bin1146.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.63
user 0.37
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936572/ft1_filtered_4FGL_J0156.8-4744_daily_bin1146.fits scfile=/scratch/kocevski/936572/ft2_4FGL_J0156.8-4744_daily_bin1146.fits outfile=/scratch/kocevski/936572/cmap_HighResolution_536371201_536630401_4FGL_J0156.8-4744_daily_bin1146.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.67
user 0.39
sys 0.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936572/ft1_filtered_4FGL_J0156.8-4744_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/936572/ft2_4FGL_J0156.8-4744_daily_bin1146.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936572/Model_4FGL_J0156.8-4744_daily_bin1146.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/936572/ft1_filtered_4FGL_J0156.8-4744_daily_bin1146.fits.....................!
real 87.27
user 84.90
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5837       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9783       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51728E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.9019       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.017       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4876       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7513       1.0000         .10000E-03   10000.    
    15 'Prefactor '    81.729       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8315       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9653       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7356       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0055       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=   4457.549     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2924 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.525        79.481        .13533E-05    .16646E-04
   2  Prefactor     .10000E-03    19.057        .70351E-06** at limit **
   3  Prefactor     .10000E-03    31.811       -.84021E-06** at limit **
   4  norm          3.5840        8.0812       -.18458E-06   -.12500E-03
   5  Prefactor     .10000E-03    97.632       -.15528E-05** at limit **
   6  Prefactor     .10000E-03    4.2147        .15117E-07** at limit **
   7  Prefactor     3.9793        6.0372        .93610E-07   -.10356E-03
   8  Prefactor     .10021E-03    9.3740       -.26467E-06** at limit **
   9  norm          .10000E-03    18.466       -.31543E-05** at limit **
  10  norm          6.8937        6.6267        .20312E-05   -.12901E-02
  11  Prefactor     12.019        16.486        .38902E-06   -.18653E-03
  12  Prefactor     .10000E-03    35.840       -.28616E-05** at limit **
  13  Prefactor     6.4876        4.8628        .17371E-06    .14282E-03
  14  norm          2.7512        1.9685       -.14969E-07   -.14495E-03
  15  Prefactor     81.710        70.874       -.62283E-05   -.28813E-03
  16  Prefactor     .10000E-03    6.1911       -.16226E-07** at limit **
  17  Prefactor     .10000E-03    7.0203       -.35030E-07** at limit **
  18  norm          .10000E-03    1.1936        .36771E-07** at limit **
  19  Prefactor     10.871        14.994        .72017E-06   -.28463E-03
  20  Prefactor     .10000E-03    19.158        .30079E-05** at limit **
  21  norm          1.8317        1.4152       -.49041E-07   -.78266E-04
  22  Prefactor     4.9643        6.6700       -.84163E-06   -.45086E-03
  23  Prefactor     8.7366        16.937       -.20434E-06   -.69997E-04
  24  Normalizat    1.0919        .21422        .47913E-06   -.23162E-04
  25  Prefactor     1.0055        .22509       -.10753E-06   -.14318E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58405
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.97927
  Prefactor  = 0.000100206
  norm       = 0.000100002
  norm       = 6.8937
  Prefactor  = 12.0193
  Prefactor  = 0.000100002
  Prefactor  = 6.48761
  norm       = 2.75115
  Prefactor  = 81.71
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8709
  Prefactor  = 0.000100002
  norm       = 1.83167
  Prefactor  = 4.96434
  Prefactor  = 8.73661
  Normalizat = 1.09192
  Prefactor  = 1.00548
 **********
 **   18 **HESSE 
 **********

 FCN=   4457.549     FROM HESSE     STATUS=OK           431 CALLS     3355 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.525        79.466        .88412E-04   -1.4802    
   2  Prefactor     .10000E-03    19.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5840        8.1055        .21347E-03   -1.5329    
   5  Prefactor     .10000E-03    99.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2584        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9793        6.0375        .19497E-03   -1.5309    
   8  Prefactor     .10021E-03    48.419        .37472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    18.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.8937        7.5283        .76357E-03   -1.5183    
  11  Prefactor     12.019        16.640        .57778E-03   -1.5014    
  12  Prefactor     .10000E-03    36.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4876        4.8691        .12063E-03   -1.5198    
  14  norm          2.7512        1.9603        .72936E-04   -1.5376    
  15  Prefactor     81.710        74.057        .44429E-04   -1.3898    
  16  Prefactor     .10000E-03    6.1987        .16224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.0218        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8385        .14146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.871        15.168        .60758E-03   -1.5048    
  20  Prefactor     .10000E-03    19.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8317        1.4057        .65313E-04   -1.5437    
  22  Prefactor     4.9643        6.7447        .18048E-03   -1.5262    
  23  Prefactor     8.7366        16.891        .13562E-03   -1.5117    
  24  Normalizat    1.0919        .24664        .23964E-03   -.90012    
  25  Prefactor     1.0055        .25829        .26639E-03   -.92547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84586e-09
Minuit parameter uncertainties:
  1  79.8798
  2  7.93037e-05
  3  0.00019084
  4  8.10795
  5  0.000628191
  6  4.4543e-06
  7  6.03845
  8  0.00632074
  9  0.000407789
  10  7.52929
  11  16.6464
  12  0.000591982
  13  4.86938
  14  1.9603
  15  74.1412
  16  4.98665e-06
  17  4.74564e-06
  18  3.96541e-05
  19  15.1734
  20  0.000392651
  21  1.40575
  22  6.74577
  23  16.9004
  24  0.246898
  25  0.258612
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.002e-04  6.321e-03  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.005e+00  2.586e-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.092e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936572/likelihoodResults_536371201_536630401_4FGL_J0156.8-4744_daily_bin1146.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): 102
logL (Free Index) = 4457.54906575
delta logL = -9.74903578026e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4457.5489675
delta logL = 7.60088369134e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20567E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3085       1.0000          .0000       10.000    
     3 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0055       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=   4457.535     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      279 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49718        28.233        .37234E-01    .87369E-03
   2  Index         2.8519        2.7069        .24272        .24706E-04
   3  Normalizat    1.0857        .17263E-01    .38336E-01    .10982E-03
   4  Prefactor     1.0075        .18596E-01    .44081E-01    .25854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.497178
  Index      = 2.85185
  Normalizat = 1.08566
  Prefactor  = 1.00751
 **********
 **   18 **HESSE 
 **********

 FCN=   4457.535     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      312 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49718        907.63        .20711E-02   -1.5567    
   2  Index         2.8519        5.3853        .12524E-01   -.44408    
   3  Normalizat    1.0857        .18017        .24020E-03   -.90213    
   4  Prefactor     1.0075        .18990        .26611E-03   -.92480    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7316e-07
Minuit parameter uncertainties:
  1  43.1528
  2  29.1781
  3  0.180268
  4  0.190025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936572': 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) = 4457.53504933
delta logL = 0.0139189281335

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  4.972e-01  4.315e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.852e+00  2.918e+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.008e+00  1.900e-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.086e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/936572/cmap_HighResolution_536371201_536630401_4FGL_J0156.8-4744_daily_bin1146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', job_status='DONE', photon_flux_upper_limit='9.23e-08', time_completed='2021-08-14 21:47:30.130686', job_id='936572', GAL2='1.01', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1629002850.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.39e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1146' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 936572: <4FGL_J0156.8-4744_daily_bin1146> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1146 29.2165 -47.7352 536371201 536630401 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 :                                   666.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            722 sec.

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

