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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1253
RA = 29.2165, Dec = -47.7352
tmin = 564105601, tmax = 564364801
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='936760', job_status='RUN', time_executed='2021-08-14 21:38:13.403449', time_epoch_executed='1629002293.4' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936760/ft1_4FGL_J0156.8-4744_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936760/ft2_4FGL_J0156.8-4744_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936760/ft1_4FGL_J0156.8-4744_daily_bin1253.fits outfile=/scratch/kocevski/936760/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1253.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=564105601.0 tmax=564364801.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 6.54
user 3.05
sys 3.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936760/ft2_4FGL_J0156.8-4744_daily_bin1253.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/936760/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1253.fits evtable="EVENTS" outfile="/scratch/kocevski/936760/ft1_filtered_4FGL_J0156.8-4744_daily_bin1253.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 3.68
user 0.33
sys 3.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936760/ft1_filtered_4FGL_J0156.8-4744_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/936760/ft2_4FGL_J0156.8-4744_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/936760/ltcube_564105601_564364801_4FGL_J0156.8-4744_daily_bin1253.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/936760/ft2_4FGL_J0156.8-4744_daily_bin1253.fits
.....................!
real 18.70
user 14.48
sys 3.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936760/ft1_filtered_4FGL_J0156.8-4744_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/936760/ft2_4FGL_J0156.8-4744_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/936760/ltcube_564105601_564364801_4FGL_J0156.8-4744_daily_bin1253.fits outfile=/scratch/kocevski/936760/expmap_564105601_564364801_4FGL_J0156.8-4744_daily_bin1253.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/936760/ltcube_564105601_564364801_4FGL_J0156.8-4744_daily_bin1253.fits
.....................!
real 199.86
user 188.99
sys 9.73

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/936760/ft1_filtered_4FGL_J0156.8-4744_daily_bin1253.fits scfile=/scratch/kocevski/936760/ft2_4FGL_J0156.8-4744_daily_bin1253.fits outfile=/scratch/kocevski/936760/cmap_564105601_564364801_4FGL_J0156.8-4744_daily_bin1253.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 3.77
user 0.37
sys 3.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936760/ft1_filtered_4FGL_J0156.8-4744_daily_bin1253.fits scfile=/scratch/kocevski/936760/ft2_4FGL_J0156.8-4744_daily_bin1253.fits outfile=/scratch/kocevski/936760/cmap_HighResolution_564105601_564364801_4FGL_J0156.8-4744_daily_bin1253.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 3.77
user 0.38
sys 3.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936760/ft1_filtered_4FGL_J0156.8-4744_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/936760/ft2_4FGL_J0156.8-4744_daily_bin1253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936760/Model_4FGL_J0156.8-4744_daily_bin1253.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/936760/ft1_filtered_4FGL_J0156.8-4744_daily_bin1253.fits.....................!
real 72.52
user 66.16
sys 5.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    21.713       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.666       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20734E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10631E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.488       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.727       1.0000         .10000E-03   10000.    
    14 'norm      '    9.7925       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.503       1.0000         .10000E-03   10000.    
    18 'norm      '    8.9452       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.236       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0916       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75748       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=   3035.998     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2829 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.947        .34550E-07** at limit **
   2  Prefactor     .10000E-03    15.564       -.26409E-06** at limit **
   3  Prefactor     .10000E-03    13.597        .93907E-07** at limit **
   4  norm          21.719        16.855       -.50130E-06    .83477E-05
   5  Prefactor     48.575        43.099        .42818E-05    .16265E-03
   6  Prefactor     .10006E-03    11.690       -.41968E-05** at limit **
   7  Prefactor     .10000E-03    2.7316        .13972E-07** at limit **
   8  Prefactor     .10000E-03    6.2455        .46205E-06** at limit **
   9  norm          .10000E-03    55.604        .47407E-07** at limit **
  10  norm          .10000E-03    11.536        .37829E-05** at limit **
  11  Prefactor     13.479        14.739        .83102E-06    .13970E-03
  12  Prefactor     27.086        35.168       -.20369E-05   -.47583E-04
  13  Prefactor     18.727        10.756       -.93982E-07   -.24275E-05
  14  norm          9.7936        3.4759       -.12273E-06   -.23399E-04
  15  Prefactor     .10000E-03    29.061       -.78904E-07** at limit **
  16  Prefactor     .10000E-03    8.5628        .13207E-06** at limit **
  17  Prefactor     18.506        18.448       -.13366E-06    .32100E-06
  18  norm          8.9457        3.9048       -.86072E-07    .11339E-04
  19  Prefactor     .10000E-03    13.626        .31905E-06** at limit **
  20  Prefactor     .10000E-03    35.499        .10481E-06** at limit **
  21  norm          .10000E-03    .54856        .53104E-07** at limit **
  22  Prefactor     25.241        11.599       -.23409E-06    .10752E-04
  23  Prefactor     .10000E-03    11.865        .33529E-07** at limit **
  24  Normalizat    1.0912        .26421        .38632E-05    .20905E-03
  25  Prefactor     .75762        .27297       -.10328E-05    .23052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.7191
  Prefactor  = 48.5754
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4795
  Prefactor  = 27.0865
  Prefactor  = 18.7274
  norm       = 9.79363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5059
  norm       = 8.94566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.2408
  Prefactor  = 0.0001
  Normalizat = 1.09125
  Prefactor  = 0.757617
 **********
 **   18 **HESSE 
 **********

 FCN=   3035.998     FROM HESSE     STATUS=OK           419 CALLS     3248 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          21.719        16.874        .85959E-04   -1.4776    
   5  Prefactor     48.575        43.449        .28741E-03   -1.4313    
   6  Prefactor     .10006E-03    34.245        .33022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7356        .88941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2488        .13439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    55.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.496        .18054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.479        14.748        .10907E-03   -1.4974    
  12  Prefactor     27.086        35.346        .77019E-04   -1.4667    
  13  Prefactor     18.727        10.765        .92554E-04   -1.4842    
  14  norm          9.7936        3.4803        .56026E-04   -1.5082    
  15  Prefactor     .10000E-03    29.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5777        .15744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.506        18.448        .93110E-04   -1.4847    
  18  norm          8.9457        3.9052        .68896E-04   -1.5110    
  19  Prefactor     .10000E-03    13.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .55793        .39796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.241        11.599        .79741E-04   -1.4703    
  23  Prefactor     .10000E-03    11.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0912        .30541        .23718E-03   -.90033    
  25  Prefactor     .75762        .31834        .29834E-03   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88873e-09
Minuit parameter uncertainties:
  1  3.35371e-05
  2  2.83417e-05
  3  2.09281e-06
  4  16.8779
  5  43.477
  6  0.00277751
  7  2.23063e-06
  8  6.72136e-06
  9  1.2427e-05
  10  7.53831e-06
  11  14.752
  12  35.3738
  13  10.7656
  14  3.48038
  15  5.92962e-05
  16  1.01162e-05
  17  18.4539
  18  3.90533
  19  3.32413e-05
  20  2.30539e-05
  21  2.95023e-06
  22  11.5997
  23  8.84702e-06
  24  0.305901
  25  0.319116
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  6.721e-06  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:  7.576e-01  3.191e-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.091e+00  3.059e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936760/likelihoodResults_564105601_564364801_4FGL_J0156.8-4744_daily_bin1253.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) = 3035.99895876
delta logL = -0.000758859188863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3035.99820015
delta logL = -2.46181116381e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1666       1.0000          .0000       10.000    
     3 'Normalizat'    1.0912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75769       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=   3035.998     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      239 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10187E-03    72.980        .13814E-02** at limit **
   2  Index         2.0995        6.0275        .50000        .28065E-04
   3  Normalizat    1.0913        .20157E-01    .23718E-03   -.54883E-05
   4  Prefactor     .75761        .21586E-01    .29834E-03   -.18482E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101868
  Index      = 2.09948
  Normalizat = 1.09125
  Prefactor  = 0.757614
 **********
 **   18 **HESSE 
 **********

 FCN=   3035.998     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10187E-03    298.91        .27627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0995        8.9401        .50000       -.61886    
   3  Normalizat    1.0913        .42565E-01    .94872E-05   -.90033    
   4  Prefactor     .75761        .45578E-01    .11933E-04   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.27624e-08
Minuit parameter uncertainties:
  1  0.0475001
  2  528.832
  3  0.042566
  4  0.04558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936760': 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) = 3035.99819931
delta logL = 5.86629084864e-07

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.019e-04  4.750e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.099e+00  5.288e+02  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:  7.576e-01  4.558e-02  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.091e+00  4.257e-02  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/936760/cmap_HighResolution_564105601_564364801_4FGL_J0156.8-4744_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-14 21:48:32.109715', job_id='936760', GAL2='0.76', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1629002912.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1253' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:48:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 936760: <4FGL_J0156.8-4744_daily_bin1253> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1253> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 21:35:42 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:36:23 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:36:23 2021
Terminated at Sat Aug 14 21:48:33 2021
Results reported at Sat Aug 14 21:48:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1253 29.2165 -47.7352 564105601 564364801 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 :                                   663.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            771 sec.

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

