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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1505
RA = 29.8858, Dec = 10.7737
tmin = 629424001, tmax = 629683201
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='3153', job_status='RUN', time_executed='2021-08-15 00:52:25.496646', time_epoch_executed='1629013945.5' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3153/ft1_4FGL_J0159.5+1046_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3153/ft1_4FGL_J0159.5+1046_daily_bin1505.fits outfile=/scratch/kocevski/3153/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1505.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=629424001.0 tmax=629683201.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.07
user 3.30
sys 2.68

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.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/3153/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1505.fits evtable="EVENTS" outfile="/scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.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.03
user 0.32
sys 2.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.fits" evtable="EVENTS" scfile=/scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits sctable="SC_DATA" outfile=/scratch/kocevski/3153/ltcube_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.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/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits
.....................!
real 17.25
user 14.31
sys 2.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/3153/ltcube_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.fits outfile=/scratch/kocevski/3153/expmap_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.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/3153/ltcube_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.fits
.....................!
real 195.89
user 186.08
sys 9.02

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
Added 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.fits scfile=/scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits outfile=/scratch/kocevski/3153/cmap_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.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.8858 yref=10.7737 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 2.98
user 0.37
sys 2.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.fits scfile=/scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits outfile=/scratch/kocevski/3153/cmap_HighResolution_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.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.8858 yref=10.7737 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.00
user 0.37
sys 2.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3153/Model_4FGL_J0159.5+1046_daily_bin1505.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 GAL_V02
Working on...
/scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.fits.....................!
real 81.21
user 76.23
sys 4.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.fits', '/scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits', expMap='/scratch/kocevski/3153/expmap_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.fits', expCube='/scratch/kocevski/3153/ltcube_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/3153/Model_4FGL_J0159.5+1046_daily_bin1505.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/3153/ft1_filtered_4FGL_J0159.5+1046_daily_bin1505.fits
Spacecraft file(s): /scratch/kocevski/3153/ft2_4FGL_J0159.5+1046_daily_bin1505.fits
Exposure map: /scratch/kocevski/3153/expmap_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.fits
Exposure cube: /scratch/kocevski/3153/ltcube_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/3153/Model_4FGL_J0159.5+1046_daily_bin1505.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) = 6837.85620259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.154       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.393       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1396       1.0000         .10000E-03   10000.    
     5 'norm      '    .17816E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.303       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .98345       1.0000         .10000E-03   10000.    
     8 'norm      '    19.040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37585E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .68497       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.120       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9866       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4167       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.126       1.0000         .10000E-03   10000.    
    22 'norm      '    .68103E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.295       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0184       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74283       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6837.792     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2517 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.155        18.480        .14982E-06   -.96173E-05
   2  Prefactor     20.379        35.517       -.14258E-06   -.72958E-04
   3  Prefactor     .10000E-03    7.0551        .57409E-08** at limit **
   4  Prefactor     2.1397        3.7698        .60166E-06    .78584E-04
   5  norm          .10000E-03    18.199       -.72490E-06** at limit **
   6  Prefactor     12.303        7.2103       -.29294E-07   -.12692E-03
   7  Prefactor     .98210        3.0562        .16550E-05    .13666E-03
   8  norm          19.041        6.6513       -.11596E-06   -.35166E-03
   9  Prefactor     .10000E-03    1.2094        .22195E-06** at limit **
  10  norm          .68500        .68889        .11863E-06    .24259E-03
  11  Prefactor     45.131        26.269       -.27580E-06   -.77519E-04
  12  Prefactor     .10000E-03    36.248        .95186E-07** at limit **
  13  Prefactor     .10000E-03    10.008        .42151E-06** at limit **
  14  Prefactor     .10000E-03    40.035       -.20561E-06** at limit **
  15  Prefactor     3.9873        4.5742        .99438E-07   -.13270E-03
  16  Prefactor     .10000E-03    8.7538        .75337E-07** at limit **
  17  Prefactor     4.8615        5.6346       -.10980E-06   -.26214E-03
  18  Prefactor     .10000E-03    5.1668        .19479E-06** at limit **
  19  norm          1.4166        .58570        .31855E-07   -.43521E-03
  20  Prefactor     .10000E-03    23.859        .83165E-06** at limit **
  21  Prefactor     23.128        20.300        .45908E-07   -.48296E-04
  22  norm          .10013E-03    9.7396        .22751E-05** at limit **
  23  Prefactor     10.306        38.781       -.26135E-06   -.66959E-04
  24  Normalizat    1.0182        .17938       -.57246E-06   -.39298E-03
  25  Prefactor     .74295        .10570       -.63006E-06   -.62229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1553
  Prefactor  = 20.3787
  Prefactor  = 0.0001
  Prefactor  = 2.13973
  norm       = 0.0001
  Prefactor  = 12.3034
  Prefactor  = 0.982096
  norm       = 19.0413
  Prefactor  = 0.0001
  norm       = 0.684999
  Prefactor  = 45.1309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98733
  Prefactor  = 0.0001
  Prefactor  = 4.86149
  Prefactor  = 0.0001
  norm       = 1.41662
  Prefactor  = 0.0001
  Prefactor  = 23.1277
  norm       = 0.000100128
  Prefactor  = 10.3057
  Normalizat = 1.01821
  Prefactor  = 0.742954
 **********
 **   18 **HESSE 
 **********

 FCN=   6837.792     FROM HESSE     STATUS=OK           429 CALLS     2946 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.155        18.519        .60334E-04   -1.4378    
   2  Prefactor     20.379        35.643        .88694E-04   -1.4805    
   3  Prefactor     .10000E-03    7.0926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1397        3.7676        .20567E-03   -1.5415    
   5  norm          .10000E-03    18.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.303        7.2078        .11420E-03   -1.5006    
   7  Prefactor     .98210        3.0955        .23510E-03   -1.5510    
   8  norm          19.041        6.6130        .91790E-04   -1.4835    
   9  Prefactor     .10000E-03    7.0335        .16939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .68500        .66103        .66308E-03   -1.5542    
  11  Prefactor     45.131        25.803        .59687E-04   -1.4363    
  12  Prefactor     .10000E-03    36.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9873        4.5609        .18258E-03   -1.5309    
  16  Prefactor     .10000E-03    8.7796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8615        5.6086        .18249E-03   -1.5267    
  18  Prefactor     .10000E-03    5.1825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4166        .58317        .39054E-04   -1.5470    
  20  Prefactor     .10000E-03    23.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.128        20.301        .83295E-04   -1.4746    
  22  norm          .10013E-03    37.864        .41910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.306        37.864        .12488E-03   -1.5066    
  24  Normalizat    1.0182        .20583        .28124E-03   -.92423    
  25  Prefactor     .74295        .12112        .19660E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73053e-09
Minuit parameter uncertainties:
  1  18.5211
  2  35.6807
  3  1.31072e-05
  4  3.76805
  5  0.000100118
  6  7.20829
  7  3.09601
  8  6.61325
  9  8.31137e-05
  10  0.661041
  11  25.8093
  12  8.70655e-05
  13  5.404e-05
  14  0.000199787
  15  4.56132
  16  1.60659e-05
  17  5.60916
  18  4.84466e-06
  19  0.583172
  20  0.000162429
  21  20.3067
  22  0.00440786
  23  37.9525
  24  0.205993
  25  0.121167
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.230e+01  7.208e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.430e-01  1.212e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.018e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.34
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.71e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 4.00e-05 +/- 2.34e-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) = 6836.80727447
delta logL = 0.984678744053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6836.80190285
delta logL = 0.990050370818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5450       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6401       1.0000          .0000       10.000    
     3 'Normalizat'    .96852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6836.802     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      290 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5469        6.9504        .43471E-03   -.15882E-03
   2  Index         2.6402        .59608        .34144E-02    .78518E-03
   3  Normalizat    .96853        .20141        .28679E-03    .10426E-04
   4  Prefactor     .75688        .12027        .19470E-03   -.69485E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.54693
  Index      = 2.64016
  Normalizat = 0.968534
  Prefactor  = 0.756882
 **********
 **   18 **HESSE 
 **********

 FCN=   6836.802     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5469        5.5704        .17389E-04   -1.5237    
   2  Index         2.6402        .47792        .68289E-03   -.49152    
   3  Normalizat    .96853        .20047        .11472E-04   -.94092    
   4  Prefactor     .75688        .12000        .77880E-05   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21317e-11
Minuit parameter uncertainties:
  1  5.57095
  2  0.478859
  3  0.200626
  4  0.120039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3153': 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) = 6836.80190234
delta logL = 0.990050879081

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  5.547e+00  5.571e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  2.640e+00  4.789e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  7.569e-01  1.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  9.685e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.35
Ra Dec: 29.886 10.774
Photon Index (Free Index): 2.64 +/- 0.48
Photon Flux (Free Index): 1.14e-07 +/- 6.30e-08
Energy Flux (Free Index): 2.88e-05 +/- 1.40e-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/3153/cmap_HighResolution_629424001_629683201_4FGL_J0159.5+1046_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.71e-08', energy_flux2='2.88e-05', photon_flux_error='3.34e-08', dlogl='9.90e-01', energy_flux='4.00e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-08-15 01:03:54.359557', photon_index_error2='0.48', photon_index2='2.64', ts='6.34', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.02', time_epoch_completed='1629014634.36', return_code='0', job_id='3153', GAL2='0.76', EG2='0.97', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='6.30e-08', ts2='8.35', photon_index='1.99' WHERE bin_id='1505' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 01:03:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 3153: <4FGL_J0159.5+1046_daily_bin1505> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1505> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 00:50:39 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:51:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 00:51:27 2021
Terminated at Sun Aug 15 01:03:55 2021
Results reported at Sun Aug 15 01:03:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1505 29.8858 10.7737 629424001 629683201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.5+1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   717.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            796 sec.

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

