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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1623
RA = 29.2165, Dec = -47.7352
tmin = 660009601, tmax = 660268801
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='143852', job_status='RUN', time_executed='2021-12-07 12:23:15.230224', time_epoch_executed='1638908595.23' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143852/ft1_4FGL_J0156.8-4744_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143852/ft2_4FGL_J0156.8-4744_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143852/ft1_4FGL_J0156.8-4744_daily_bin1623.fits outfile=/scratch/kocevski/143852/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1623.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=660009601.0 tmax=660268801.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 5.04
user 4.73
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/143852/ft1_filtered_4FGL_J0156.8-4744_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/143852/ft2_4FGL_J0156.8-4744_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/143852/ltcube_660009601_660268801_4FGL_J0156.8-4744_daily_bin1623.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/143852/ft2_4FGL_J0156.8-4744_daily_bin1623.fits
.....................!
real 16.57
user 16.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143852/ft1_filtered_4FGL_J0156.8-4744_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/143852/ft2_4FGL_J0156.8-4744_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/143852/ltcube_660009601_660268801_4FGL_J0156.8-4744_daily_bin1623.fits outfile=/scratch/kocevski/143852/expmap_660009601_660268801_4FGL_J0156.8-4744_daily_bin1623.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/143852/ltcube_660009601_660268801_4FGL_J0156.8-4744_daily_bin1623.fits
.....................!
real 197.11
user 190.47
sys 5.94

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/143852/ft1_filtered_4FGL_J0156.8-4744_daily_bin1623.fits scfile=/scratch/kocevski/143852/ft2_4FGL_J0156.8-4744_daily_bin1623.fits outfile=/scratch/kocevski/143852/cmap_660009601_660268801_4FGL_J0156.8-4744_daily_bin1623.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143852/ft1_filtered_4FGL_J0156.8-4744_daily_bin1623.fits scfile=/scratch/kocevski/143852/ft2_4FGL_J0156.8-4744_daily_bin1623.fits outfile=/scratch/kocevski/143852/cmap_HighResolution_660009601_660268801_4FGL_J0156.8-4744_daily_bin1623.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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/143852/ft1_filtered_4FGL_J0156.8-4744_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/143852/ft2_4FGL_J0156.8-4744_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/143852/Model_4FGL_J0156.8-4744_daily_bin1623.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/143852/ft1_filtered_4FGL_J0156.8-4744_daily_bin1623.fits.....................!
real 99.49
user 97.15
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.473       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.368       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23009E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2709       1.0000         .10000E-03   10000.    
    14 'norm      '    .39165       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10210E-03   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      '    1.4140       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.705       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .32921       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1937       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95167       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=   4830.956     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3874 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.493        70.389       -.16215E-05   -.19373E-04
   2  Prefactor     11.692        21.293       -.37170E-06   -.34468E-04
   3  Prefactor     .10000E-03    10.226        .89210E-07** at limit **
   4  norm          .10000E-03    14.650        .44718E-06** at limit **
   5  Prefactor     6.6967        32.070       -.62844E-05   -.12545E-03
   6  Prefactor     .10000E-03    4.1232       -.54337E-06** at limit **
   7  Prefactor     .10000E-03    1.7973        .22367E-07** at limit **
   8  Prefactor     19.344        11.740       -.19737E-06   -.11780E-03
   9  norm          .10000E-03    24.191        .63660E-07** at limit **
  10  norm          .10000E-03    3.5531        .22165E-07** at limit **
  11  Prefactor     7.7541        17.503        .20158E-06    .76815E-06
  12  Prefactor     .21026        35.736        .15828E-05   -.95449E-04
  13  Prefactor     3.2709        4.1779        .23176E-05   -.29458E-03
  14  norm          .38888        1.3708       -.35276E-06   -.25408E-03
  15  Prefactor     .10000E-03    96.506        .36295E-06** at limit **
  16  Prefactor     .10000E-03    7.5483       -.61456E-07** at limit **
  17  Prefactor     .10000E-03    6.5753       -.76074E-08** at limit **
  18  norm          1.4139        2.2627        .19098E-06   -.60142E-04
  19  Prefactor     10.703        15.154       -.85525E-06   -.96355E-04
  20  Prefactor     .10000E-03    28.530        .65845E-07** at limit **
  21  norm          .32945        1.0381        .87410E-07    .21768E-04
  22  Prefactor     .10000E-03    2.8022        .10825E-06** at limit **
  23  Prefactor     .10000E-03    7.9805        .75212E-07** at limit **
  24  Normalizat    1.1935        .20828        .98439E-06   -.11996E-03
  25  Prefactor     .95176        .21129       -.13436E-05    .19166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.4931
  Prefactor  = 11.6915
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.69669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3438
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.75412
  Prefactor  = 0.210258
  Prefactor  = 3.27089
  norm       = 0.388877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41391
  Prefactor  = 10.7027
  Prefactor  = 0.0001
  norm       = 0.329452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19346
  Prefactor  = 0.951759
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.956     FROM HESSE     STATUS=OK           437 CALLS     4311 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.493        70.606        .82677E-04   -1.4738    
   2  Prefactor     11.692        21.320        .11716E-03   -1.5024    
   3  Prefactor     .10000E-03    10.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6967        35.157        .15513E-03   -1.5190    
   6  Prefactor     .10000E-03    4.1503        .13757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8005        .91002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.344        11.726        .91010E-04   -1.4828    
   9  norm          .10000E-03    24.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.5652        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7541        17.503        .14400E-03   -1.5151    
  12  Prefactor     .21026        41.135        .10510       -1.5616    
  13  Prefactor     3.2709        4.2518        .76821E-03   -1.5346    
  14  norm          .38888        1.7315        .13380E-02   -1.5583    
  15  Prefactor     .10000E-03    97.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5769        .17407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4139        2.2436        .12496E-03   -1.5470    
  19  Prefactor     10.703        14.791        .12246E-03   -1.5054    
  20  Prefactor     .10000E-03    28.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .32945        1.2569        .10998E-02   -1.5593    
  22  Prefactor     .10000E-03    2.8244        .11359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.0060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1935        .25037        .22623E-03   -.86805    
  25  Prefactor     .95176        .25284        .26621E-03   -.94355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00013e-07
Minuit parameter uncertainties:
  1  70.8588
  2  21.3337
  3  1.04021e-06
  4  1.19449e-05
  5  30.7158
  6  2.25899e-05
  7  1.12862e-06
  8  11.7277
  9  1.23877e-06
  10  3.34355e-06
  11  17.5141
  12  5.88454
  13  4.25216
  14  1.64103
  15  5.18817e-05
  16  7.45396e-06
  17  1.8756e-06
  18  2.24377
  19  14.7958
  20  1.93672e-06
  21  1.25705
  22  3.69271e-07
  23  2.64507e-06
  24  0.250626
  25  0.253152
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.934e+01  1.173e+01  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.518e-01  2.532e-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.193e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.02
Ra Dec: 29.216 -47.735
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.21e-08 +/- 4.37e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 1.99e-05

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) = 4830.30619615
delta logL = 0.649823530493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4830.29259877
delta logL = 0.663420907576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2787       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8076       1.0000          .0000       10.000    
     3 'Normalizat'    1.1226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99933       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=   4830.293     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      276 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2770        11.630        .93838E-04   -.59123E-04
   2  Index         2.8074        .65904        .31872E-02   -.30840E-04
   3  Normalizat    1.1230        .24519        .23172E-03   -.76881E-04
   4  Prefactor     .99897        .25465        .26043E-03   -.26128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.27702
  Index      = 2.80737
  Normalizat = 1.12303
  Prefactor  = 0.998967
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.293     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2770        9.6490        .37535E-05   -1.5099    
   2  Index         2.8074        .54672        .12749E-03   -.45396    
   3  Normalizat    1.1230        .24372        .92687E-05   -.89016    
   4  Prefactor     .99897        .25377        .52086E-04   -.92764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4111e-10
Minuit parameter uncertainties:
  1  9.65065
  2  0.548078
  3  0.243962
  4  0.254077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143852': 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) = 4830.29259672
delta logL = 0.663422956644

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  9.277e+00  9.651e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.807e+00  5.481e-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.990e-01  2.541e-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.123e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.45
Ra Dec: 29.216 -47.735
Photon Index (Free Index): 2.81 +/- 0.55
Photon Flux (Free Index): 1.26e-07 +/- 7.02e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.34e-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/143852/cmap_HighResolution_660009601_660268801_4FGL_J0156.8-4744_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.21e-08', energy_flux2='2.81e-05', photon_flux_error='4.37e-08', dlogl='6.63e-01', energy_flux='3.28e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-12-07 12:35:29.978092', photon_index_error2='0.55', photon_index2='2.81', ts='8.02', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.19', time_epoch_completed='1638909329.98', return_code='0', job_id='143852', GAL2='1.00', EG2='1.12', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='7.02e-08', ts2='9.45', photon_index='2.19' WHERE bin_id='1623' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:35:30 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 143852: <4FGL_J0156.8-4744_daily_bin1623> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1623> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:20:23 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:22:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:22:16 2021
Terminated at Tue Dec  7 12:35:30 2021
Results reported at Tue Dec  7 12:35:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1623 29.2165 -47.7352 660009601 660268801 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 :                                   731.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            907 sec.

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

