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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1408
RA = 29.2165, Dec = -47.7352
tmin = 604281601, tmax = 604540801
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='938067', job_status='RUN', time_executed='2021-08-14 21:42:51.156412', time_epoch_executed='1629002571.16' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938067

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938067/ft1_4FGL_J0156.8-4744_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938067/ft2_4FGL_J0156.8-4744_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938067/ft1_4FGL_J0156.8-4744_daily_bin1408.fits outfile=/scratch/kocevski/938067/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1408.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=604281601.0 tmax=604540801.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 7.96
user 3.45
sys 4.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938067/ft2_4FGL_J0156.8-4744_daily_bin1408.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/938067/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1408.fits evtable="EVENTS" outfile="/scratch/kocevski/938067/ft1_filtered_4FGL_J0156.8-4744_daily_bin1408.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 4.74
user 0.36
sys 4.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938067/ft1_filtered_4FGL_J0156.8-4744_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/938067/ft2_4FGL_J0156.8-4744_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/938067/ltcube_604281601_604540801_4FGL_J0156.8-4744_daily_bin1408.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/938067/ft2_4FGL_J0156.8-4744_daily_bin1408.fits
.....................!
real 17.91
user 12.41
sys 5.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938067/ft1_filtered_4FGL_J0156.8-4744_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/938067/ft2_4FGL_J0156.8-4744_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/938067/ltcube_604281601_604540801_4FGL_J0156.8-4744_daily_bin1408.fits outfile=/scratch/kocevski/938067/expmap_604281601_604540801_4FGL_J0156.8-4744_daily_bin1408.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/938067/ltcube_604281601_604540801_4FGL_J0156.8-4744_daily_bin1408.fits
.....................!
real 199.08
user 187.69
sys 10.49

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/938067/ft1_filtered_4FGL_J0156.8-4744_daily_bin1408.fits scfile=/scratch/kocevski/938067/ft2_4FGL_J0156.8-4744_daily_bin1408.fits outfile=/scratch/kocevski/938067/cmap_604281601_604540801_4FGL_J0156.8-4744_daily_bin1408.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 4.26
user 0.38
sys 3.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938067/ft1_filtered_4FGL_J0156.8-4744_daily_bin1408.fits scfile=/scratch/kocevski/938067/ft2_4FGL_J0156.8-4744_daily_bin1408.fits outfile=/scratch/kocevski/938067/cmap_HighResolution_604281601_604540801_4FGL_J0156.8-4744_daily_bin1408.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 4.66
user 0.38
sys 4.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938067/ft1_filtered_4FGL_J0156.8-4744_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/938067/ft2_4FGL_J0156.8-4744_daily_bin1408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938067/Model_4FGL_J0156.8-4744_daily_bin1408.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/938067/ft1_filtered_4FGL_J0156.8-4744_daily_bin1408.fits.....................!
real 117.15
user 110.01
sys 6.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5035       1.0000         .10000E-03   10000.    
     4 'norm      '    10.983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    95.738       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2961       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3987       1.0000         .10000E-03   10000.    
     9 'norm      '    59.282       1.0000         .10000E-03   10000.    
    10 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3205       1.0000         .10000E-03   10000.    
    14 'norm      '    45.847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.156       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .14248E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .40702       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0584       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97749       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=   5394.899     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2938 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.064        64.564       -.92828E-04    .46843E-05
   2  Prefactor     .10000E-03    10.071        .39827E-06** at limit **
   3  Prefactor     9.5050        25.009       -.30406E-05    .64990E-05
   4  norm          10.984        11.213       -.60885E-06    .19938E-04
   5  Prefactor     95.741        49.486        .13714E-05    .52848E-04
   6  Prefactor     2.2976        6.1082       -.28779E-05   -.53981E-03
   7  Prefactor     .10000E-03    6.5639        .68892E-07** at limit **
   8  Prefactor     6.3996        7.8575       -.87392E-06   -.32733E-04
   9  norm          59.284        73.460        .24413E-05    .29130E-05
  10  norm          .10000E-03    2.3715       -.85758E-07** at limit **
  11  Prefactor     .10000E-03    17.376       -.30102E-05** at limit **
  12  Prefactor     .10000E-03    15.689        .44289E-05** at limit **
  13  Prefactor     2.3200        4.8979        .15162E-05   -.29196E-03
  14  norm          45.848        4.8852       -.49798E-06    .35950E-03
  15  Prefactor     6.6173        76.039       -.16808E-03    .30288E-04
  16  Prefactor     .10000E-03    16.556        .27883E-05** at limit **
  17  Prefactor     .10000E-03    13.893       -.47080E-05** at limit **
  18  norm          .10000E-03    1.0386        .12446E-06** at limit **
  19  Prefactor     62.146        23.595       -.24810E-05    .13115E-03
  20  Prefactor     .10000E-03    73.289        .21601E-04** at limit **
  21  norm          .10000E-03    .85980       -.30799E-06** at limit **
  22  Prefactor     .42413        4.1301       -.17405E-05   -.16045E-03
  23  Prefactor     .10000E-03    36.544       -.80008E-05** at limit **
  24  Normalizat    1.0584        .22185        .28213E-05    .43805E-03
  25  Prefactor     .97746        .22732        .12072E-04    .73898E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.0641
  Prefactor  = 0.0001
  Prefactor  = 9.50497
  norm       = 10.9839
  Prefactor  = 95.7413
  Prefactor  = 2.29763
  Prefactor  = 0.0001
  Prefactor  = 6.39956
  norm       = 59.2842
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.32
  norm       = 45.848
  Prefactor  = 6.61733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 62.1456
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.424134
  Prefactor  = 0.0001
  Normalizat = 1.05837
  Prefactor  = 0.977455
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.899     FROM HESSE     STATUS=OK           423 CALLS     3361 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.064        64.664        .29837E-03   -1.4364    
   2  Prefactor     .10000E-03    10.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5050        25.055        .13000E-03   -1.5091    
   4  norm          10.984        11.215        .12089E-03   -1.5045    
   5  Prefactor     95.741        49.441        .41078E-04   -1.3748    
   6  Prefactor     2.2976        6.0728        .27086E-03   -1.5405    
   7  Prefactor     .10000E-03    6.7077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3996        7.8513        .15867E-03   -1.5202    
   9  norm          59.284        73.494        .52108E-04   -1.4167    
  10  norm          .10000E-03    2.3768        .11044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3200        4.8606        .22625E-03   -1.5403    
  14  norm          45.848        4.8804        .49212E-04   -1.4353    
  15  Prefactor     6.6173        76.687        .15518E-03   -1.5193    
  16  Prefactor     .10000E-03    16.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0578        .73060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     62.146        23.475        .50896E-04   -1.4130    
  20  Prefactor     .10000E-03    73.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.2670        .13106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .42413        9.2774        .28822E-02   -1.5578    
  23  Prefactor     .10000E-03    37.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0584        .27207        .28655E-03   -.91100    
  25  Prefactor     .97746        .27737        .31078E-03   -.93485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35382e-08
Minuit parameter uncertainties:
  1  64.765
  2  2.53064e-05
  3  25.0826
  4  11.2167
  5  49.462
  6  6.07445
  7  1.45509e-05
  8  7.85258
  9  73.6063
  10  1.10253e-05
  11  0.000216022
  12  5.35475e-05
  13  4.86141
  14  4.88048
  15  45.1265
  16  9.296e-05
  17  4.85161e-05
  18  1.61759e-05
  19  23.4789
  20  0.000332209
  21  6.32216e-05
  22  3.96753
  23  0.00015032
  24  0.272434
  25  0.277778
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  6.400e+00  7.853e+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.775e-01  2.778e-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.058e+00  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.39e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/938067/likelihoodResults_604281601_604540801_4FGL_J0156.8-4744_daily_bin1408.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) = 5394.89447583
delta logL = 0.00492208848937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5394.89194266
delta logL = 0.00745525814091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7588       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3031       1.0000          .0000       10.000    
     3 'Normalizat'    1.0558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97905       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=   5394.892     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7535        288.43        .41843E-02    .70199E-04
   2  Index         2.3032        5.7668        .15475        .77427E-04
   3  Normalizat    1.0558        .99032E-01    .64843E-01   -.35308E-05
   4  Prefactor     .97904        .86731E-01    .70198E-01   -.12856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.75352
  Index      = 2.30324
  Normalizat = 1.0558
  Prefactor  = 0.979043
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.892     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7535        9.6511        .16737E-03   -1.5228    
   2  Index         2.3032        .97295        .94330E-02   -.56967    
   3  Normalizat    1.0558        .25989        .28683E-03   -.91184    
   4  Prefactor     .97904        .27228        .31053E-03   -.93431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.945e-12
Minuit parameter uncertainties:
  1  9.65372
  2  0.981826
  3  0.260208
  4  0.272662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938067': 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) = 5394.89194246
delta logL = 0.00745545998416

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  5.754e+00  9.654e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.303e+00  9.818e-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:  9.790e-01  2.727e-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.056e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 2.30 +/- 0.98
Photon Flux (Free Index): 2.67e-08 +/- 3.89e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.41e-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/938067/cmap_HighResolution_604281601_604540801_4FGL_J0156.8-4744_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', comment='SUCCESS', photon_flux='2.39e-08', energy_flux2='1.01e-05', photon_flux_error='2.93e-08', dlogl='7.46e-03', energy_flux='1.09e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-08-14 21:56:55.036913', photon_index_error2='0.98', photon_index2='2.30', ts='1.34', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.41e-05', EG='1.06', time_epoch_completed='1629003415.04', return_code='0', job_id='938067', GAL2='0.98', EG2='1.06', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='3.89e-08', ts2='1.36', photon_index='2.19' WHERE bin_id='1408' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:56:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 938067: <4FGL_J0156.8-4744_daily_bin1408> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1408> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 21:40:25 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:40:56 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:40:56 2021
Terminated at Sat Aug 14 21:56:56 2021
Results reported at Sat Aug 14 21:56:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1408 29.2165 -47.7352 604281601 604540801 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 :                                   897.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            991 sec.

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

