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


Performing analysis on: 4FGL_J0159.5+1046_daily_bin1445
RA = 29.8858, Dec = 10.7737
tmin = 613872001, tmax = 614131201
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='3058', job_status='RUN', time_executed='2021-08-15 00:53:51.158571', time_epoch_executed='1629014031.16' WHERE source_name='4FGL J0159.5+1046' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3058

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3058/ft1_4FGL_J0159.5+1046_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3058/ft1_4FGL_J0159.5+1046_daily_bin1445.fits outfile=/scratch/kocevski/3058/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1445.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=613872001.0 tmax=614131201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.35
user 2.12
sys 1.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.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/3058/ft1_filteredMKT_4FGL_J0159.5+1046_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.52
user 0.33
sys 1.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/3058/ltcube_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.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/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits
.....................!
real 15.46
user 13.98
sys 1.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/3058/ltcube_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.fits outfile=/scratch/kocevski/3058/expmap_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.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/3058/ltcube_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.fits
.....................!
real 197.27
user 189.63
sys 6.91

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/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits scfile=/scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits outfile=/scratch/kocevski/3058/cmap_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.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 1.41
user 0.39
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits scfile=/scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits outfile=/scratch/kocevski/3058/cmap_HighResolution_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.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 1.52
user 0.39
sys 1.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3058/Model_4FGL_J0159.5+1046_daily_bin1445.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/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits.....................!
real 68.32
user 65.49
sys 2.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits', '/scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits', expMap='/scratch/kocevski/3058/expmap_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.fits', expCube='/scratch/kocevski/3058/ltcube_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/3058/Model_4FGL_J0159.5+1046_daily_bin1445.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/3058/ft1_filtered_4FGL_J0159.5+1046_daily_bin1445.fits
Spacecraft file(s): /scratch/kocevski/3058/ft2_4FGL_J0159.5+1046_daily_bin1445.fits
Exposure map: /scratch/kocevski/3058/expmap_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.fits
Exposure cube: /scratch/kocevski/3058/ltcube_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/3058/Model_4FGL_J0159.5+1046_daily_bin1445.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) = 5525.43921297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .95308       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7894       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8899       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4469       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7669       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    174.36       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.479       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .87886       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5344       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.635       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12325E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.292       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5502       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63198       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=   5525.429     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2914 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.424        14.002        .50260E-06   -.24661E-05
   2  Prefactor     1.4491        819.45       -.89660E-05   -.77421E-05
   3  Prefactor     .10000E-03    5.9673        .71356E-07** at limit **
   4  Prefactor     .95334        3.3583        .15553E-05    .11450E-03
   5  norm          3.7889        14.351        .10287E-05    .16386E-05
   6  Prefactor     13.055        8.3326        .97619E-07   -.50429E-04
   7  Prefactor     1.8894        3.3317        .78516E-06    .72907E-04
   8  norm          6.4453        4.1510       -.17806E-07   -.35512E-04
   9  Prefactor     4.7651        3.5049        .13572E-06   -.66390E-04
  10  norm          .10000E-03    .26782        .11113E-06** at limit **
  11  Prefactor     .10000E-03    29.682        .25321E-05** at limit **
  12  Prefactor     45.406        49.023        .29173E-06   -.87527E-04
  13  Prefactor     .10000E-03    4.9966        .10167E-05** at limit **
  14  Prefactor     174.58        126.96       -.47299E-05    .79284E-04
  15  Prefactor     .10000E-03    8.5509        .12484E-05** at limit **
  16  Prefactor     19.465        24.703       -.34145E-05   -.98773E-05
  17  Prefactor     .87328        13.951       -.15371E-05    .74871E-03
  18  Prefactor     .10000E-03    6.5204        .85933E-07** at limit **
  19  norm          3.5339        1.0786        .90174E-08   -.18519E-03
  20  Prefactor     31.616        48.526       -.54408E-06   -.88478E-05
  21  Prefactor     .10000E-03    52.996        .18412E-05** at limit **
  22  norm          20.291        17.092       -.21375E-05   -.75702E-04
  23  Prefactor     .10000E-03    27.664        .22595E-06** at limit **
  24  Normalizat    1.5500        .21614       -.64326E-06   -.25675E-03
  25  Prefactor     .63213        .13341       -.23425E-05   -.21342E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4242
  Prefactor  = 1.4491
  Prefactor  = 0.0001
  Prefactor  = 0.953339
  norm       = 3.78893
  Prefactor  = 13.0545
  Prefactor  = 1.88945
  norm       = 6.44534
  Prefactor  = 4.76513
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 45.4056
  Prefactor  = 0.0001
  Prefactor  = 174.581
  Prefactor  = 0.0001
  Prefactor  = 19.465
  Prefactor  = 0.873278
  Prefactor  = 0.0001
  norm       = 3.53388
  Prefactor  = 31.6162
  Prefactor  = 0.000100001
  norm       = 20.2908
  Prefactor  = 0.0001
  Normalizat = 1.54997
  Prefactor  = 0.63213
 **********
 **   18 **HESSE 
 **********

 FCN=   5525.429     FROM HESSE     STATUS=OK           433 CALLS     3347 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.424        14.036        .12410E-03   -1.5062    
   2  Prefactor     1.4491        868.23        .32980E-02   -1.5467    
   3  Prefactor     .10000E-03    5.9954        .17735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .95334        3.3276        .24779E-03   -1.5513    
   5  norm          3.7889        14.337        .20737E-03   -1.5319    
   6  Prefactor     13.055        8.3337        .11087E-03   -1.4985    
   7  Prefactor     1.8894        3.3221        .17011E-03   -1.5433    
   8  norm          6.4453        4.1502        .11789E-03   -1.5200    
   9  Prefactor     4.7651        3.4982        .11148E-03   -1.5271    
  10  norm          .10000E-03    .27684        .75153E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.406        49.007        .59575E-04   -1.4359    
  13  Prefactor     .10000E-03    5.0322        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     174.58        127.16        .15280E-03   -1.3058    
  15  Prefactor     .10000E-03    8.6172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.465        24.949        .90750E-04   -1.4825    
  17  Prefactor     .87328        57.985        .48999E-02   -1.5521    
  18  Prefactor     .10000E-03    6.5332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5339        1.0790        .41079E-04   -1.5332    
  20  Prefactor     31.616        48.521        .71239E-04   -1.4583    
  21  Prefactor     .10000E-03    54.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.291        17.373        .88914E-04   -1.4807    
  23  Prefactor     .10000E-03    27.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5500        .24506        .25921E-03   -.76384    
  25  Prefactor     .63213        .14970        .23859E-03   -1.0625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52169e-08
Minuit parameter uncertainties:
  1  14.0399
  2  72.0127
  3  1.09139e-05
  4  3.32825
  5  14.3501
  6  8.33439
  7  3.32245
  8  4.15041
  9  3.49838
  10  1.56772e-06
  11  0.000277105
  12  49.0505
  13  4.21632e-05
  14  127.364
  15  8.89815e-05
  16  24.9623
  17  14.2456
  18  1.66653e-05
  19  1.079
  20  48.5818
  21  0.000405392
  22  17.3775
  23  5.6714e-05
  24  0.245244
  25  0.149793
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.305e+01  8.334e+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:  6.321e-01  1.498e-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.550e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.67
Ra Dec: 29.886 10.774
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 4.24e-05 +/- 2.71e-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) = 5525.41634368
delta logL = 0.0127374837875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5525.41468841
delta logL = 0.0143927547379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.509       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8848       1.0000          .0000       10.000    
     3 'Normalizat'    1.5584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63088       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5525.415     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      261 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.510        9.2181        .10898E-03    .66974E-04
   2  Index         1.8848        .67401        .86309E-02    .29129E-03
   3  Normalizat    1.5584        .23868        .25871E-03   -.68552E-05
   4  Prefactor     .63089        .14483        .23888E-03   -.49686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5103
  Index      = 1.88475
  Normalizat = 1.55842
  Prefactor  = 0.63089
 **********
 **   18 **HESSE 
 **********

 FCN=   5525.415     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.510        9.1275        .43591E-05   -1.4973    
   2  Index         1.8848        .66623        .17262E-02   -.67264    
   3  Normalizat    1.5584        .23849        .10348E-04   -.76150    
   4  Prefactor     .63089        .14490        .95551E-05   -1.0630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31029e-11
Minuit parameter uncertainties:
  1  9.12846
  2  0.669497
  3  0.238668
  4  0.144987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3058': 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) = 5525.41468839
delta logL = 0.014392769046

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.351e+01  9.128e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.885e+00  6.695e-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:  6.309e-01  1.450e-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.558e+00  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.68
Ra Dec: 29.886 10.774
Photon Index (Free Index): 1.88 +/- 0.67
Photon Flux (Free Index): 5.02e-08 +/- 6.86e-08
Energy Flux (Free Index): 4.70e-05 +/- 4.45e-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/3058/cmap_HighResolution_613872001_614131201_4FGL_J0159.5+1046_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='4.70e-05', photon_flux_error='3.87e-08', dlogl='1.44e-02', energy_flux='4.24e-05', photon_flux2='5.02e-08', job_status='DONE', time_completed='2021-08-15 01:04:40.094591', photon_index_error2='0.67', photon_index2='1.88', ts='10.67', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='4.45e-05', EG='1.55', time_epoch_completed='1629014680.09', return_code='0', job_id='3058', GAL2='0.63', EG2='1.56', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='6.86e-08', ts2='10.68', photon_index='1.99' WHERE bin_id='1445' AND source_name='4FGL J0159.5+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 01:04:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 3058: <4FGL_J0159.5+1046_daily_bin1445> in cluster <slac> Done

Job <4FGL_J0159.5+1046_daily_bin1445> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 00:50:31 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:50:59 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:50:59 2021
Terminated at Sun Aug 15 01:04:40 2021
Results reported at Sun Aug 15 01:04:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_daily_bin1445 29.8858 10.7737 613872001 614131201 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 :                                   641.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            849 sec.

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

