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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1161
RA = 29.2165, Dec = -47.7352
tmin = 540259201, tmax = 540518401
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='936601', job_status='RUN', time_executed='2021-08-14 21:36:26.807870', time_epoch_executed='1629002186.81' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936601

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936601/ft1_4FGL_J0156.8-4744_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936601/ft2_4FGL_J0156.8-4744_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936601/ft1_4FGL_J0156.8-4744_daily_bin1161.fits outfile=/scratch/kocevski/936601/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1161.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=540259201.0 tmax=540518401.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.75
user 2.61
sys 1.12

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936601/ft2_4FGL_J0156.8-4744_daily_bin1161.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/936601/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1161.fits evtable="EVENTS" outfile="/scratch/kocevski/936601/ft1_filtered_4FGL_J0156.8-4744_daily_bin1161.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.33
user 0.28
sys 1.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936601/ft1_filtered_4FGL_J0156.8-4744_daily_bin1161.fits" evtable="EVENTS" scfile=/scratch/kocevski/936601/ft2_4FGL_J0156.8-4744_daily_bin1161.fits sctable="SC_DATA" outfile=/scratch/kocevski/936601/ltcube_540259201_540518401_4FGL_J0156.8-4744_daily_bin1161.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/936601/ft2_4FGL_J0156.8-4744_daily_bin1161.fits
.....................!
real 10.82
user 9.51
sys 1.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936601/ft1_filtered_4FGL_J0156.8-4744_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/936601/ft2_4FGL_J0156.8-4744_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/936601/ltcube_540259201_540518401_4FGL_J0156.8-4744_daily_bin1161.fits outfile=/scratch/kocevski/936601/expmap_540259201_540518401_4FGL_J0156.8-4744_daily_bin1161.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/936601/ltcube_540259201_540518401_4FGL_J0156.8-4744_daily_bin1161.fits
.....................!
real 153.82
user 148.70
sys 4.75

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/936601/ft1_filtered_4FGL_J0156.8-4744_daily_bin1161.fits scfile=/scratch/kocevski/936601/ft2_4FGL_J0156.8-4744_daily_bin1161.fits outfile=/scratch/kocevski/936601/cmap_540259201_540518401_4FGL_J0156.8-4744_daily_bin1161.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.41
user 0.32
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936601/ft1_filtered_4FGL_J0156.8-4744_daily_bin1161.fits scfile=/scratch/kocevski/936601/ft2_4FGL_J0156.8-4744_daily_bin1161.fits outfile=/scratch/kocevski/936601/cmap_HighResolution_540259201_540518401_4FGL_J0156.8-4744_daily_bin1161.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.37
user 0.33
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936601/ft1_filtered_4FGL_J0156.8-4744_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/936601/ft2_4FGL_J0156.8-4744_daily_bin1161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936601/Model_4FGL_J0156.8-4744_daily_bin1161.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/936601/ft1_filtered_4FGL_J0156.8-4744_daily_bin1161.fits.....................!
real 77.68
user 75.03
sys 2.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11975E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.606       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4067       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3173       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5730       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4219       1.0000         .10000E-03   10000.    
    14 'norm      '    8.4857       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.752       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    86.341       1.0000         .10000E-03   10000.    
    21 'norm      '    .11259E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0387       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.631       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3056       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92137       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=   4910.283     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2896 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.457       -.39434E-06** at limit **
   2  Prefactor     .10000E-03    25.998        .56556E-07** at limit **
   3  Prefactor     .10000E-03    69.067        .23160E-05** at limit **
   4  norm          18.602        12.937        .23413E-06   -.48240E-04
   5  Prefactor     6.4034        40.815       -.19049E-05   -.99151E-06
   6  Prefactor     3.3176        8.4992        .42229E-05   -.16410E-04
   7  Prefactor     .10000E-03    1.5820       -.28910E-07** at limit **
   8  Prefactor     3.5727        7.1862        .83056E-07   -.51553E-05
   9  norm          .10000E-03    38.081       -.92986E-07** at limit **
  10  norm          .10000E-03    2.0259        .22698E-07** at limit **
  11  Prefactor     .10000E-03    15.010        .54935E-06** at limit **
  12  Prefactor     .10000E-03    15.955       -.19060E-06** at limit **
  13  Prefactor     1.4177        5.5775        .53720E-06    .53948E-05
  14  norm          8.4873        2.7553        .19232E-07   -.57602E-05
  15  Prefactor     24.103        60.537        .44982E-05    .53028E-05
  16  Prefactor     .10000E-03    55.376       -.20043E-05** at limit **
  17  Prefactor     .10000E-03    28.983        .12199E-05** at limit **
  18  norm          25.752        4.7394       -.11474E-06   -.73628E-04
  19  Prefactor     .10000E-03    15.878       -.12031E-06** at limit **
  20  Prefactor     86.331        79.492        .14289E-05    .54533E-05
  21  norm          .10000E-03    1.0525        .21572E-06** at limit **
  22  Prefactor     4.0391        6.8969        .87094E-06    .22957E-04
  23  Prefactor     22.633        20.806        .50280E-07   -.16498E-04
  24  Normalizat    1.3055        .22364       -.12476E-05   -.28775E-04
  25  Prefactor     .92150        .23596        .13789E-06   -.54022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.6025
  Prefactor  = 6.40344
  Prefactor  = 3.3176
  Prefactor  = 0.0001
  Prefactor  = 3.57266
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41775
  norm       = 8.4873
  Prefactor  = 24.1033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.752
  Prefactor  = 0.0001
  Prefactor  = 86.3306
  norm       = 0.0001
  Prefactor  = 4.03915
  Prefactor  = 22.6328
  Normalizat = 1.30549
  Prefactor  = 0.921499
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.283     FROM HESSE     STATUS=OK           427 CALLS     3323 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.602        12.936        .46426E-03   -1.4845    
   5  Prefactor     6.4034        40.812        .15857E-03   -1.5202    
   6  Prefactor     3.3176        8.5168        .11113E-02   -1.5344    
   7  Prefactor     .10000E-03    1.5833        .86078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5727        7.1718        .21380E-03   -1.5330    
   9  norm          .10000E-03    38.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0291        .97389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4177        5.5026        .30154E-03   -1.5470    
  14  norm          8.4873        2.7328        .59862E-04   -1.5125    
  15  Prefactor     24.103        60.660        .81556E-04   -1.4726    
  16  Prefactor     .10000E-03    56.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.752        4.7384        .62682E-04   -1.4693    
  19  Prefactor     .10000E-03    15.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     86.331        79.548        .43236E-04   -1.3847    
  21  norm          .10000E-03    2.2445        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0391        6.8850        .20065E-03   -1.5306    
  23  Prefactor     22.633        20.786        .84200E-04   -1.4756    
  24  Normalizat    1.3055        .26815        .25192E-03   -.83403    
  25  Prefactor     .92150        .28319        .31362E-03   -.95394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47126e-10
Minuit parameter uncertainties:
  1  1.70836e-07
  2  1.54904e-05
  3  5.17128e-05
  4  12.9384
  5  32.3642
  6  8.51986
  7  1.09495e-06
  8  7.17352
  9  1.76788e-06
  10  2.41399e-06
  11  1.27009e-05
  12  1.08065e-05
  13  5.50456
  14  2.73284
  15  60.8162
  16  0.000200788
  17  6.14189e-05
  18  4.7385
  19  2.798e-05
  20  79.6459
  21  5.74022e-06
  22  6.88638
  23  20.7925
  24  0.268439
  25  0.283647
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  3.573e+00  7.174e+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:  9.215e-01  2.836e-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.305e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936601/likelihoodResults_540259201_540518401_4FGL_J0156.8-4744_daily_bin1161.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) = 4910.03801258
delta logL = 0.245221783039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4910.0305661
delta logL = 0.252668266634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3905       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0762       1.0000          .0000       10.000    
     3 'Normalizat'    1.2819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93530       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=   4910.031     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      287 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3902        8.6983        .10426E-03   -.57324E-03
   2  Index         3.0763        2.2442        .71186E-02   -.70394E-04
   3  Normalizat    1.2819        .26575        .25374E-03   -.24742E-03
   4  Prefactor     .93525        .28130        .31142E-03   -.18775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39021
  Index      = 3.07628
  Normalizat = 1.28194
  Prefactor  = 0.935254
 **********
 **   18 **HESSE 
 **********

 FCN=   4910.031     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3902        3.8373        .41703E-05   -1.5472    
   2  Index         3.0763        1.2754        .28475E-03   -.39493    
   3  Normalizat    1.2819        .26470        .50748E-04   -.84107    
   4  Prefactor     .93525        .28051        .12457E-04   -.94920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98479e-10
Minuit parameter uncertainties:
  1  3.83801
  2  1.29225
  3  0.26498
  4  0.280948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936601': 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) = 4910.03056608
delta logL = 0.252668285299

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.390e+00  3.838e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  3.076e+00  1.292e+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.353e-01  2.809e-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.282e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/936601/cmap_HighResolution_540259201_540518401_4FGL_J0156.8-4744_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-08-14 21:46:05.251967', job_id='936601', GAL2='0.94', fit_tolerance='1e-08', EG2='1.28', EG='1.31', time_epoch_completed='1629002765.25', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.53e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1161' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 936601: <4FGL_J0156.8-4744_daily_bin1161> in cluster <slac> Done

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

Your job looked like:

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

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

